From e1fc070733712b8b577c7b5dbde6cfed956dc668 Mon Sep 17 00:00:00 2001 From: Gregor Kleen Date: Tue, 3 Aug 2021 17:41:02 +0200 Subject: vidhar: initrd.network --- hosts/vidhar/default.nix | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'hosts') diff --git a/hosts/vidhar/default.nix b/hosts/vidhar/default.nix index 67d7d442..ef8ecc58 100644 --- a/hosts/vidhar/default.nix +++ b/hosts/vidhar/default.nix @@ -24,6 +24,11 @@ kernelPackages = pkgs.linuxPackages_latest; kernelModules = [ "kvm-intel" ]; + kernelParams = [ + "ip=192.168.2.168:192.168.2.1:255.255.255.0:${hostName}:eno1:off" + "nameserver=192.168.2.1" + ]; + tmpOnTmpfs = true; initrd = { @@ -42,6 +47,8 @@ hdd4.device = "/dev/disk/by-label/${hostName}-hdd4"; hdd5.device = "/dev/disk/by-label/${hostName}-hdd5"; }; + + initrd.network.flushBeforeStage2 = false; }; supportedFilesystems = [ "zfs" ]; -- cgit v1.2.3