summaryrefslogtreecommitdiff
path: root/hosts
diff options
context:
space:
mode:
authorGregor Kleen <gkleen@yggdrasil.li>2021-08-03 17:41:02 +0200
committerGregor Kleen <gkleen@yggdrasil.li>2021-08-03 17:41:02 +0200
commite1fc070733712b8b577c7b5dbde6cfed956dc668 (patch)
tree19528293cd53233520f5b2043526db9a17dc4a08 /hosts
parent9287758fa6cdf4d59416ebce83d0a2d0eee61a3a (diff)
downloadnixos-e1fc070733712b8b577c7b5dbde6cfed956dc668.tar
nixos-e1fc070733712b8b577c7b5dbde6cfed956dc668.tar.gz
nixos-e1fc070733712b8b577c7b5dbde6cfed956dc668.tar.bz2
nixos-e1fc070733712b8b577c7b5dbde6cfed956dc668.tar.xz
nixos-e1fc070733712b8b577c7b5dbde6cfed956dc668.zip
vidhar: initrd.network
Diffstat (limited to 'hosts')
-rw-r--r--hosts/vidhar/default.nix7
1 files changed, 7 insertions, 0 deletions
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 @@
24 kernelPackages = pkgs.linuxPackages_latest; 24 kernelPackages = pkgs.linuxPackages_latest;
25 kernelModules = [ "kvm-intel" ]; 25 kernelModules = [ "kvm-intel" ];
26 26
27 kernelParams = [
28 "ip=192.168.2.168:192.168.2.1:255.255.255.0:${hostName}:eno1:off"
29 "nameserver=192.168.2.1"
30 ];
31
27 tmpOnTmpfs = true; 32 tmpOnTmpfs = true;
28 33
29 initrd = { 34 initrd = {
@@ -42,6 +47,8 @@
42 hdd4.device = "/dev/disk/by-label/${hostName}-hdd4"; 47 hdd4.device = "/dev/disk/by-label/${hostName}-hdd4";
43 hdd5.device = "/dev/disk/by-label/${hostName}-hdd5"; 48 hdd5.device = "/dev/disk/by-label/${hostName}-hdd5";
44 }; 49 };
50
51 initrd.network.flushBeforeStage2 = false;
45 }; 52 };
46 53
47 supportedFilesystems = [ "zfs" ]; 54 supportedFilesystems = [ "zfs" ];