aboutsummaryrefslogtreecommitdiff
path: root/modules/hosts/adam
diff options
context:
space:
mode:
Diffstat (limited to 'modules/hosts/adam')
-rw-r--r--modules/hosts/adam/configuration.nix2
-rw-r--r--modules/hosts/adam/hardware-configuration.nix3
2 files changed, 3 insertions, 2 deletions
diff --git a/modules/hosts/adam/configuration.nix b/modules/hosts/adam/configuration.nix
index e82f885..8e134f2 100644
--- a/modules/hosts/adam/configuration.nix
+++ b/modules/hosts/adam/configuration.nix
@@ -9,8 +9,6 @@
kernelPackages = pkgs.linuxPackages_latest;
kernelParams = [ "amd_pstate=active" ];
kernelModules = [ "amdgpu" ];
- initrd.luks.devices."luks-803851e9-7fa8-4367-a927-0bb76d0fe830".device =
- "/dev/disk/by-uuid/803851e9-7fa8-4367-a927-0bb76d0fe830";
loader = {
timeout = 0;
systemd-boot.enable = true;
diff --git a/modules/hosts/adam/hardware-configuration.nix b/modules/hosts/adam/hardware-configuration.nix
index 4793291..04b7346 100644
--- a/modules/hosts/adam/hardware-configuration.nix
+++ b/modules/hosts/adam/hardware-configuration.nix
@@ -36,6 +36,9 @@
];
};
+ boot.initrd.luks.devices."luks-c8c2ebcd-5e0d-4523-8cf6-b7fdf67c14a4".device =
+ "/dev/disk/by-uuid/c8c2ebcd-5e0d-4523-8cf6-b7fdf67c14a4";
+
swapDevices = [
{ device = "/dev/mapper/luks-c8c2ebcd-5e0d-4523-8cf6-b7fdf67c14a4"; }
];