Machines/WinMax2: add encrypted swap partition
This commit is contained in:
parent
16d47d5214
commit
ce6732acd8
1 changed files with 11 additions and 2 deletions
|
|
@ -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 = {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue