From a60385f44b6349329edb740b1c2b5b7aa70e96f8 Mon Sep 17 00:00:00 2001 From: System administrator Date: Mon, 4 Nov 2024 02:42:56 +0000 Subject: update hardware configuration to support encryption --- modules/hosts/T495/hardware-configuration.nix | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) (limited to 'modules/hosts/T495') diff --git a/modules/hosts/T495/hardware-configuration.nix b/modules/hosts/T495/hardware-configuration.nix index 87bcb79..7f8aa88 100644 --- a/modules/hosts/T495/hardware-configuration.nix +++ b/modules/hosts/T495/hardware-configuration.nix @@ -14,23 +14,25 @@ boot.extraModulePackages = [ ]; fileSystems."/" = - { device = "/dev/disk/by-uuid/ddf3cd9c-13a0-43d6-b278-dbb97cd9f9ee"; + { device = "/dev/disk/by-uuid/a48ef087-2b46-462d-a9ea-1b8d5e18d570"; fsType = "btrfs"; options = [ "subvol=@" ]; }; - fileSystems."/boot" = - { device = "/dev/disk/by-uuid/ddf3cd9c-13a0-43d6-b278-dbb97cd9f9ee"; - fsType = "btrfs"; - options = [ "subvol=@boot" ]; - }; + boot.initrd.luks.devices."cryptroot".device = "/dev/disk/by-uuid/cb143604-275c-491f-af2a-0525837cc31c"; fileSystems."/home" = - { device = "/dev/disk/by-uuid/ddf3cd9c-13a0-43d6-b278-dbb97cd9f9ee"; + { device = "/dev/disk/by-uuid/a48ef087-2b46-462d-a9ea-1b8d5e18d570"; fsType = "btrfs"; options = [ "subvol=@home" ]; }; + fileSystems."/boot" = + { device = "/dev/disk/by-uuid/a48ef087-2b46-462d-a9ea-1b8d5e18d570"; + fsType = "btrfs"; + options = [ "subvol=@boot" ]; + }; + fileSystems."/boot/efi" = { device = "/dev/disk/by-uuid/9441-53B1"; fsType = "vfat"; -- cgit v1.2.3