summaryrefslogtreecommitdiff
path: root/hosts
diff options
context:
space:
mode:
authorGregor Kleen <gkleen@yggdrasil.li>2021-08-03 16:48:28 +0200
committerGregor Kleen <gkleen@yggdrasil.li>2021-08-03 16:48:28 +0200
commite4608fb1e41ebc35d62f98e1b6b3729590115fbb (patch)
treefa14f08669a8609e41df4b21a860a902d97eb45c /hosts
parent4c168376f99be41146b929a573582db4096032fe (diff)
downloadnixos-e4608fb1e41ebc35d62f98e1b6b3729590115fbb.tar
nixos-e4608fb1e41ebc35d62f98e1b6b3729590115fbb.tar.gz
nixos-e4608fb1e41ebc35d62f98e1b6b3729590115fbb.tar.bz2
nixos-e4608fb1e41ebc35d62f98e1b6b3729590115fbb.tar.xz
nixos-e4608fb1e41ebc35d62f98e1b6b3729590115fbb.zip
vidhar: initrd networking
Diffstat (limited to 'hosts')
-rw-r--r--hosts/vidhar/default.nix21
-rw-r--r--hosts/vidhar/initrd-host-keys/private.yaml35
-rw-r--r--hosts/vidhar/initrd-host-keys/public.yaml4
3 files changed, 59 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";
diff --git a/hosts/vidhar/initrd-host-keys/private.yaml b/hosts/vidhar/initrd-host-keys/private.yaml
new file mode 100644
index 00000000..ea424974
--- /dev/null
+++ b/hosts/vidhar/initrd-host-keys/private.yaml
@@ -0,0 +1,35 @@
1rsa: ENC[AES256_GCM,data:u5NbMQLLIHzcH1oUvGbxNRiK0DUX84tQ/sIaUae370jkTdiRTrwTSOX+TielSgwEyLo7KAOVO0olbEheJjP6tLlOExDZZCO09YBqvZksSkT+0irnpA9K3oIPZVAKMgoGMRvr8I1fWn9ZQGpzFBrEOGN9+f5bJ4y44IHUxepvCalQQb4wFNqZv/tPAH8ku18v4U6Nocqfj4PfECzCaslRBY3tCiZ4ipbnBSaLM5KHDZWHYti88kG67xwupJ/v48wLtKwVQIzTvY+oN4ZnwRGzmqHfuz8EET/BrLZ/WLJtf3JuEqTZQIw24qP/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t+w==,type:str]
2ed25519: ENC[AES256_GCM,data:PE0UKLLThNwkdi2oz38HlgslJD5i9c9cL4ZBSBxSMcz7bXzLMv58Z9vucJ4WPtBxKSvFx5ksl/alRUyh2WTxuGNgut9vcgcNSG2qXzb8jdxb5CbFK1yVglVX7wtQkaOwmlc1Pty64sA0jwucaQQhEMeVXA/kxwe5uagCIupjP6lqnkzAuf4Dc1jIfXdEoEV0jtVUSjgeXHPymSPkg1J95VUMEIfVbncFxvzSQngv5kuE/XoH3adujuKR9fC/Z5u08hSjTzGQzMdgZk5BYvy7AWYN8SmfWcyAkClywj9DCzgaw8KY+MzSxQWrhAt3rqobmtVoJoJ5oc1/l6m5pPsyb/Ex2wwFh/rWm7SNfhW/Ev/ZuIX7llL7HCgXxhiCJIl9X4jkwF6OvslvK1wYgJ6rvGQwyM+/7Q8/rX1KJnq3qA93SfDi/fPLuJxcMYj/mZ/bluG4bsTFaUzDf1l6C251p24JJt3F0o1RTF1zgACrdhKK1BN79sQt4xDnHawCCwEkBbdeE0pmml1i3aUy5thl,iv:6cYTjmJd44Uc+uwnIZI1CUuKhYNGHuWa8wr7CYJY3RY=,tag:+PGy7aVeHyLH+B04Nj8BRQ==,type:str]
3sops:
4 kms: []
5 gcp_kms: []
6 azure_kv: []
7 hc_vault: []
8 age: []
9 lastmodified: "2021-08-03T14:47:32Z"
10 mac: ENC[AES256_GCM,data:gWbmGMZ+/Ts7NP9J1q/kjQmJ7V6lJ5xFpjZNJ+aTOmkz7a6sG8SRvNEW/qrpJfCzEFdQJYhOW3X9FhWpb5U6j4gINrgqUGdusQpw0PmIieC5tCPQPlTPHMReK0xaZ3NViMdHJhGdtehGfPqAtA3Bifn2ZZzOrzTOaPN2fH11fZw=,iv:FhKERfmDPmWn5ZKkuHWMc/vINpmJTr0jZ1iCkSgAUEs=,tag:ibe+m8vz6b+a+as5mz4+eA==,type:str]
11 pgp:
12 - created_at: "2021-08-03T14:47:02Z"
13 enc: |
14 -----BEGIN PGP MESSAGE-----
15
16 hF4DXxoViZlp6dISAQdAFyVws/2vIBK6ohlM93FpgKt6RXI8RPgaJSgHKsSeMB8w
17 XJqXQ2YGG8X6kHR/SW3A//1hBbLAaT6cRj7PLtkabr/5vgJ1Yk+k2mCFg+fte61o
18 0l4Bppl+iqVjECSJlrRp/GtbbyGlSS+pAItDZKAZOnrIYbx27CFfxNDDHv8EAFDP
19 HoYtgpeVxgRuvIBMHexMiuFExExkddHpHkSDoT1iJOsK+SQEqbxSfZpEJIRLcjb9
20 =hvve
21 -----END PGP MESSAGE-----
22 fp: 30D3453B8CD02FE2A3E7C78C0FB536FB87AE8F51
23 - created_at: "2021-08-03T14:47:02Z"
24 enc: |
25 -----BEGIN PGP MESSAGE-----
26
27 hF4DbYDvGI0HDr0SAQdAvLR7Ngh3gqQAnmlCeSwKGwWXBNlBZxxliQBOkhhKcSow
28 V9mWDn01Iue3qHQwGCd7Om/9EqU7SkFrkxzgAIBRJpAmj0eP1zsgiWepawzQ4glb
29 0l4ByB+6R+V2SyGI9HcABJiLcTOIjVLgn1QzK0l4K2ewS2K5FSBGNzVKoT+p4J5a
30 ja6A7vM0u12ddlqkifBsqN7900gI2ZTUz00rDZqis3sJk9J8dyWsAdkscig7Htlg
31 =hZHL
32 -----END PGP MESSAGE-----
33 fp: A1C7C95E6CAF0A965CB47277BCF50A89C1B1F362
34 unencrypted_suffix: _unencrypted
35 version: 3.7.1
diff --git a/hosts/vidhar/initrd-host-keys/public.yaml b/hosts/vidhar/initrd-host-keys/public.yaml
new file mode 100644
index 00000000..af521564
--- /dev/null
+++ b/hosts/vidhar/initrd-host-keys/public.yaml
@@ -0,0 +1,4 @@
1rsa: |
2 ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABgQCs0bzHfJBgG5AP0nSUgkGBoxRLRDu9FMfwJN3NFLeUf1axmKPja0mO+ddUQeLobDcl4zU4VyBxdd5qrrSkAufM76GJJFqXGJs98WudELXD5I4/o99Fh7xSf6QtafftTbjUfcTzX9t30Cb109Ppv1sKANcfLOx5EWH4TX3WK0vWTZHlS/OHvojwx7Y8/8dYbA96neMSBK5ceDu/VAG/JHYz5JgtDczSKUnbh026xav8rv9Sd3paC42XNlWSkjvpXxXoJ+ta5SuOXAl+4gPDvjgxK+QJ+yglhJma7LdHt7tqQjy/R0v5+wMzbNCKdQ1E9GiCw+hSE3mbCj/PVFy+J1oadBta+qF5SKCSurFeCRaehTTz6Qynxu0OxLQV/OHX6yC2i9OVJOs0PNGiot9pjxoSKyKrlT7gshP6MRfC1F330oVDSOPAkFLFFkTJtzb0ifJ5s1LyM0LyJAPso+5ytCcSOoQpcKd54VbSTYXBcnWtRFtEzUDIeLDeRWgQ0zJsef8=
3ed25519: |
4 ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIBb+RVaConednm1DsYh18ttUEs/FJ7+E3g0YGbZcJthp