Machines/WinMax2: add encrypted swap partition

This commit is contained in:
Toast 2024-04-09 16:07:42 +02:00
parent 16d47d5214
commit ce6732acd8

View file

@ -19,7 +19,10 @@ in {
boot.kernelModules = ["kvm-amd"];
boot.extraModulePackages = [];
boot.initrd.luks.devices."SSD".device = "/dev/disk/by-label/wm2-enc";
boot.initrd.luks.devices = {
"SSD".device = "/dev/disk/by-label/wm2-enc";
"swap".device = "/dev/disk/by-label/wm2-swap";
};
fileSystems = {
"efi_boot_partition" = {
@ -65,7 +68,13 @@ in {
};
};
swapDevices = [];
swapDevices = [
{
device = "/dev/mapper/swap";
# only want to use the swap partition for hibernating
priority = 0;
}
];
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
hardware = {