diff options
author | Gregor Kleen <gkleen@yggdrasil.li> | 2021-08-02 13:27:19 +0200 |
---|---|---|
committer | Gregor Kleen <gkleen@yggdrasil.li> | 2021-08-02 13:27:19 +0200 |
commit | 613076cfecd7954c240b3d7d9b79eb1ac6db6e72 (patch) | |
tree | 13b439dda8157c6e95796e9e647936f3f1c2e3d6 /hosts/vidhar/default.nix | |
parent | fa8e043deab12cdf3d1c406c275c93703ece3d6d (diff) | |
download | nixos-613076cfecd7954c240b3d7d9b79eb1ac6db6e72.tar nixos-613076cfecd7954c240b3d7d9b79eb1ac6db6e72.tar.gz nixos-613076cfecd7954c240b3d7d9b79eb1ac6db6e72.tar.bz2 nixos-613076cfecd7954c240b3d7d9b79eb1ac6db6e72.tar.xz nixos-613076cfecd7954c240b3d7d9b79eb1ac6db6e72.zip |
vidhar: luks.devices
Diffstat (limited to 'hosts/vidhar/default.nix')
-rw-r--r-- | hosts/vidhar/default.nix | 15 |
1 files changed, 14 insertions, 1 deletions
diff --git a/hosts/vidhar/default.nix b/hosts/vidhar/default.nix index 3b47a1dc..3c7bccc5 100644 --- a/hosts/vidhar/default.nix +++ b/hosts/vidhar/default.nix | |||
@@ -1,4 +1,4 @@ | |||
1 | { flake, pkgs, lib, ... }: | 1 | { hostName, flake, pkgs, lib, ... }: |
2 | { | 2 | { |
3 | imports = with flake.nixosModules.systemProfiles; [ | 3 | imports = with flake.nixosModules.systemProfiles; [ |
4 | openssh rebuild-machines initrd-all-crypto-modules | 4 | openssh rebuild-machines initrd-all-crypto-modules |
@@ -26,7 +26,20 @@ | |||
26 | initrd = { | 26 | initrd = { |
27 | supportedFilesystems = [ "zfs" ]; | 27 | supportedFilesystems = [ "zfs" ]; |
28 | kernelModules = [ "dm_raid" ]; | 28 | kernelModules = [ "dm_raid" ]; |
29 | |||
30 | luks.devices = { | ||
31 | nvm0.device = "/dev/disk/by-label/${hostName}-nvm0"; | ||
32 | nvm1.device = "/dev/disk/by-label/${hostName}-nvm1"; | ||
33 | |||
34 | hdd0.device = "/dev/disk/by-label/${hostName}-hdd0"; | ||
35 | hdd1.device = "/dev/disk/by-label/${hostName}-hdd1"; | ||
36 | hdd2.device = "/dev/disk/by-label/${hostName}-hdd2"; | ||
37 | hdd3.device = "/dev/disk/by-label/${hostName}-hdd3"; | ||
38 | hdd4.device = "/dev/disk/by-label/${hostName}-hdd4"; | ||
39 | hdd5.device = "/dev/disk/by-label/${hostName}-hdd5"; | ||
40 | }; | ||
29 | }; | 41 | }; |
42 | |||
30 | supportedFilesystems = [ "zfs" ]; | 43 | supportedFilesystems = [ "zfs" ]; |
31 | zfs = { | 44 | zfs = { |
32 | enableUnstable = true; | 45 | enableUnstable = true; |