hosts: enable zramswap

This commit is contained in:
Kabbone 2023-01-07 08:56:04 +01:00
parent e44ba26ccb
commit ede4232f28
Signed by: Kabbone
SSH Key Fingerprint: SHA256:A5zPB5I6u5V78V51c362BBdCwhDhfDUVbt7NfKdjWBY
3 changed files with 3 additions and 0 deletions

View File

@ -22,6 +22,7 @@
boot.kernelModules = [ "kvm-amd" ];
boot.extraModulePackages = [ ];
boot.tmpOnTmpfs = true;
zramSwap.enable = true;
fileSystems."/" =
{ device = "/dev/disk/by-label/NIXROOT";

View File

@ -23,6 +23,7 @@
boot.extraModulePackages = [ ];
boot.kernelParams = [ "mitigations=off" "luks.options=fido2-device=auto" ];
boot.tmpOnTmpfs = true;
zramSwap.enable = true;
boot.initrd.luks = {
fido2Support = true;

View File

@ -22,6 +22,7 @@
boot.kernelModules = [ "kvm-amd" ];
boot.extraModulePackages = [ ];
boot.tmpOnTmpfs = true;
zramSwap.enable = true;
fileSystems."/" =
{ device = "/dev/disk/by-label/NIXROOT";