diff options
author | Gregor Kleen <gkleen@yggdrasil.li> | 2023-12-03 11:27:28 +0100 |
---|---|---|
committer | Gregor Kleen <gkleen@yggdrasil.li> | 2023-12-03 11:27:28 +0100 |
commit | 5dbccbbd1dc26681b6478842dd01be8b3e93c603 (patch) | |
tree | efc22a777c88d04f84ed70165f878e57739dc09e /hosts/vidhar/default.nix | |
parent | bde3c17e178e9c56422ab7da1c61d2718dfc5567 (diff) | |
download | nixos-5dbccbbd1dc26681b6478842dd01be8b3e93c603.tar nixos-5dbccbbd1dc26681b6478842dd01be8b3e93c603.tar.gz nixos-5dbccbbd1dc26681b6478842dd01be8b3e93c603.tar.bz2 nixos-5dbccbbd1dc26681b6478842dd01be8b3e93c603.tar.xz nixos-5dbccbbd1dc26681b6478842dd01be8b3e93c603.zip |
...
Diffstat (limited to 'hosts/vidhar/default.nix')
-rw-r--r-- | hosts/vidhar/default.nix | 31 |
1 files changed, 28 insertions, 3 deletions
diff --git a/hosts/vidhar/default.nix b/hosts/vidhar/default.nix index 6b266e2b..59518f07 100644 --- a/hosts/vidhar/default.nix +++ b/hosts/vidhar/default.nix | |||
@@ -35,6 +35,33 @@ with lib; | |||
35 | tmp.useTmpfs = true; | 35 | tmp.useTmpfs = true; |
36 | 36 | ||
37 | initrd = { | 37 | initrd = { |
38 | systemd = { | ||
39 | enable = true; | ||
40 | network = { | ||
41 | enable = true; | ||
42 | networks = { | ||
43 | "eno1" = { | ||
44 | matchConfig.Name = "eno1"; | ||
45 | networkConfig = { | ||
46 | LLMNR = false; | ||
47 | MulticastDNS = false; | ||
48 | DNSSEC = false; | ||
49 | LinkLocalAddressing = "no"; | ||
50 | Address = [ | ||
51 | "10.141.1.1/24" | ||
52 | ]; | ||
53 | DHCPServer = true; | ||
54 | }; | ||
55 | dhcpServerConfig = { | ||
56 | EmitDNS = false; | ||
57 | EmitRouter = false; | ||
58 | EmitTimezone = false; | ||
59 | }; | ||
60 | }; | ||
61 | }; | ||
62 | }; | ||
63 | }; | ||
64 | |||
38 | supportedFilesystems = [ "zfs" ]; | 65 | supportedFilesystems = [ "zfs" ]; |
39 | availableKernelModules = [ "ehci_pci" "ahci" "nvme" "isci" "xhci_pci" "usb_storage" "usbhid" "sd_mod" "sr_mod" "drbg" "rtsx_pci_sdmmc" "libsas" "scsi_transport_sas" "e1000e" ]; | 66 | availableKernelModules = [ "ehci_pci" "ahci" "nvme" "isci" "xhci_pci" "usb_storage" "usbhid" "sd_mod" "sr_mod" "drbg" "rtsx_pci_sdmmc" "libsas" "scsi_transport_sas" "e1000e" ]; |
40 | kernelModules = [ "dm-raid" "dm-integrity" "dm-snapshot" "dm-thin-pool" ]; | 67 | kernelModules = [ "dm-raid" "dm-integrity" "dm-snapshot" "dm-thin-pool" ]; |
@@ -50,8 +77,6 @@ with lib; | |||
50 | hdd4.device = "/dev/disk/by-label/${hostName}-hdd4"; | 77 | hdd4.device = "/dev/disk/by-label/${hostName}-hdd4"; |
51 | hdd5.device = "/dev/disk/by-label/${hostName}-hdd5"; | 78 | hdd5.device = "/dev/disk/by-label/${hostName}-hdd5"; |
52 | }; | 79 | }; |
53 | |||
54 | network.flushBeforeStage2 = false; | ||
55 | }; | 80 | }; |
56 | }; | 81 | }; |
57 | 82 | ||
@@ -308,7 +333,7 @@ with lib; | |||
308 | BATTERYLEVEL 10 | 333 | BATTERYLEVEL 10 |
309 | MINUTES 5 | 334 | MINUTES 5 |
310 | POLLTIME 1 | 335 | POLLTIME 1 |
311 | ONBATTERYDELAY 0 | 336 | ONBATTERYDELAY 20 |
312 | NOLOGON disable | 337 | NOLOGON disable |
313 | ''; | 338 | ''; |
314 | }; | 339 | }; |