setting up jeeves swap

This commit is contained in:
2024-09-15 14:31:20 -04:00
parent d142dfdbad
commit f2588e210b
2 changed files with 26 additions and 4 deletions

View File

@@ -17,8 +17,8 @@
];
kernelModules = [ ];
luks.devices = {
"luks-root-pool-wwn-0x500a0751e6c3c01e-part2".device = "/dev/disk/by-id/wwn-0x500a0751e6c3c01e-part2";
"luks-root-pool-wwn-0x500a0751e6c3c01c-part2".device = "/dev/disk/by-id/wwn-0x500a0751e6c3c01c-part2";
"luks-root-pool-wwn-0x500a0751e6c3c01e-part2".device = "/dev/disk/by-id//wwn-0x500a0751e6c3c01e-part2";
"luks-root-pool-wwn-0x500a0751e6c3c01c-part2".device = "/dev/disk/by-id//wwn-0x500a0751e6c3c01c-part2";
};
};
kernelModules = [ "kvm-amd" ];
@@ -51,7 +51,26 @@
};
};
swapDevices = [ ];
swapDevices = [
{
device = "/dev/disk/by-id/wwn-0x500a0751e6c3c01c-part3";
randomEncryption = {
enable = true;
allowDiscards = true;
};
priority = 10;
}
{
device = "/dev/disk/by-id/wwn-0x500a0751e6c3c01e-part3";
randomEncryption = {
enable = true;
allowDiscards = true;
};
priority = 10;
}
];
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
hardware.cpu.amd.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware;