diff options
| author | Gregor Kleen <gkleen@yggdrasil.li> | 2021-08-03 16:48:28 +0200 |
|---|---|---|
| committer | Gregor Kleen <gkleen@yggdrasil.li> | 2021-08-03 16:48:28 +0200 |
| commit | e4608fb1e41ebc35d62f98e1b6b3729590115fbb (patch) | |
| tree | fa14f08669a8609e41df4b21a860a902d97eb45c /hosts/vidhar/default.nix | |
| parent | 4c168376f99be41146b929a573582db4096032fe (diff) | |
| download | nixos-e4608fb1e41ebc35d62f98e1b6b3729590115fbb.tar nixos-e4608fb1e41ebc35d62f98e1b6b3729590115fbb.tar.gz nixos-e4608fb1e41ebc35d62f98e1b6b3729590115fbb.tar.bz2 nixos-e4608fb1e41ebc35d62f98e1b6b3729590115fbb.tar.xz nixos-e4608fb1e41ebc35d62f98e1b6b3729590115fbb.zip | |
vidhar: initrd networking
Diffstat (limited to 'hosts/vidhar/default.nix')
| -rw-r--r-- | hosts/vidhar/default.nix | 21 |
1 files changed, 20 insertions, 1 deletions
diff --git a/hosts/vidhar/default.nix b/hosts/vidhar/default.nix index fecbfe9d..d28aeed7 100644 --- a/hosts/vidhar/default.nix +++ b/hosts/vidhar/default.nix | |||
| @@ -27,7 +27,7 @@ | |||
| 27 | 27 | ||
| 28 | initrd = { | 28 | initrd = { |
| 29 | supportedFilesystems = [ "zfs" ]; | 29 | supportedFilesystems = [ "zfs" ]; |
| 30 | availableKernelModules = [ "ehci_pci" "ahci" "nvme" "isci" "xhci_pci" "usb_storage" "usbhid" "sd_mod" "sr_mod" "drbg" "rtsx_pci_sdmmc" "libsas" "scsi_transport_sas" ]; | 30 | availableKernelModules = [ "ehci_pci" "ahci" "nvme" "isci" "xhci_pci" "usb_storage" "usbhid" "sd_mod" "sr_mod" "drbg" "rtsx_pci_sdmmc" "libsas" "scsi_transport_sas" "e1000e" ]; |
| 31 | kernelModules = [ "dm-raid" "dm-integrity" "dm-snapshot" "dm-thin-pool" ]; | 31 | kernelModules = [ "dm-raid" "dm-integrity" "dm-snapshot" "dm-thin-pool" ]; |
| 32 | 32 | ||
| 33 | luks.devices = { | 33 | luks.devices = { |
| @@ -41,6 +41,14 @@ | |||
| 41 | hdd4.device = "/dev/disk/by-label/${hostName}-hdd4"; | 41 | hdd4.device = "/dev/disk/by-label/${hostName}-hdd4"; |
| 42 | hdd5.device = "/dev/disk/by-label/${hostName}-hdd5"; | 42 | hdd5.device = "/dev/disk/by-label/${hostName}-hdd5"; |
| 43 | }; | 43 | }; |
| 44 | |||
| 45 | network = { | ||
| 46 | enable = true; | ||
| 47 | ssh = { | ||
| 48 | enable = true; | ||
| 49 | hostKeys = with config.sops.secrets; [ initrd_ssh_host_rsa_key.path initrd_ssh_host_ed25519_key.path ]; | ||
| 50 | }; | ||
| 51 | }; | ||
| 44 | }; | 52 | }; |
| 45 | 53 | ||
| 46 | supportedFilesystems = [ "zfs" ]; | 54 | supportedFilesystems = [ "zfs" ]; |
| @@ -49,6 +57,17 @@ | |||
| 49 | }; | 57 | }; |
| 50 | }; | 58 | }; |
| 51 | 59 | ||
| 60 | sops.secrets = { | ||
| 61 | initrd_ssh_host_rsa_key = { | ||
| 62 | key = "rsa"; | ||
| 63 | sopsFile = ./initrd-host-keys/private.yaml; | ||
| 64 | }; | ||
| 65 | initrd_ssh_host_ed25519_key = { | ||
| 66 | key = "ed25519"; | ||
| 67 | sopsFile = ./initrd-host-keys/private.yaml; | ||
| 68 | }; | ||
| 69 | }; | ||
| 70 | |||
| 52 | fileSystems = { | 71 | fileSystems = { |
| 53 | "/" = { | 72 | "/" = { |
| 54 | fsType = "tmpfs"; | 73 | fsType = "tmpfs"; |
