diff --git a/system-modules/hardware-configuration.nix b/system-modules/hardware-configuration.nix index c03c5e6..0107e3d 100644 --- a/system-modules/hardware-configuration.nix +++ b/system-modules/hardware-configuration.nix @@ -9,7 +9,9 @@ boot = { initrd = { availableKernelModules = [ "xhci_pci" "thunderbolt" "vmd" "nvme" "usb_storage" "sd_mod" "rtsx_pci_sdmmc" ]; - luks.devices.cryptroot.device = pkgs.lib.mkIf (hyper.host == "NxXPS") "/dev/nvme0n1p7"; + luks.devices = pkgs.lib.mkIf (hyper.host == "NxXPS") { + "vault".device = "/dev/nvme0n1p7"; + }; kernelModules = pkgs.lib.mkIf (hyper.host == "NxXPS") [ "i915" "cryptd" ]; }; kernelModules = [ "kvm-intel" ]; @@ -28,7 +30,7 @@ "${hyper.home}/vault" = { device = "/dev/disk/by-label/vault"; fsType = "ext4"; }; } else if hyper.host == "NxNORTH" then { "${hyper.home}/shared" = { device = "/dev/disk/by-label/shared"; } // ntfs; - } else if hyper.host == "NxXPS" then { + } else if hyper.host == "NxACE" then { "/vault" = { device = "/dev/disk/by-label/vault"; fsType = "ext4"; }; } else {}); hardware = {