From 613076cfecd7954c240b3d7d9b79eb1ac6db6e72 Mon Sep 17 00:00:00 2001 From: Gregor Kleen Date: Mon, 2 Aug 2021 13:27:19 +0200 Subject: vidhar: luks.devices --- hosts/vidhar/default.nix | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) (limited to 'hosts/vidhar/default.nix') 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 @@ -{ flake, pkgs, lib, ... }: +{ hostName, flake, pkgs, lib, ... }: { imports = with flake.nixosModules.systemProfiles; [ openssh rebuild-machines initrd-all-crypto-modules @@ -26,7 +26,20 @@ initrd = { supportedFilesystems = [ "zfs" ]; kernelModules = [ "dm_raid" ]; + + luks.devices = { + nvm0.device = "/dev/disk/by-label/${hostName}-nvm0"; + nvm1.device = "/dev/disk/by-label/${hostName}-nvm1"; + + hdd0.device = "/dev/disk/by-label/${hostName}-hdd0"; + hdd1.device = "/dev/disk/by-label/${hostName}-hdd1"; + hdd2.device = "/dev/disk/by-label/${hostName}-hdd2"; + hdd3.device = "/dev/disk/by-label/${hostName}-hdd3"; + hdd4.device = "/dev/disk/by-label/${hostName}-hdd4"; + hdd5.device = "/dev/disk/by-label/${hostName}-hdd5"; + }; }; + supportedFilesystems = [ "zfs" ]; zfs = { enableUnstable = true; -- cgit v1.2.3