diff --git a/hosts/desktop/hardware-configuration.nix b/hosts/desktop/hardware-configuration.nix index 477e27b..1cc4ddb 100644 --- a/hosts/desktop/hardware-configuration.nix +++ b/hosts/desktop/hardware-configuration.nix @@ -22,6 +22,7 @@ boot.kernelModules = [ "kvm-amd" ]; boot.extraModulePackages = [ ]; boot.tmpOnTmpfs = true; + zramSwap.enable = true; fileSystems."/" = { device = "/dev/disk/by-label/NIXROOT"; diff --git a/hosts/laptop/hardware-configuration.nix b/hosts/laptop/hardware-configuration.nix index 97a3245..4e78ee1 100644 --- a/hosts/laptop/hardware-configuration.nix +++ b/hosts/laptop/hardware-configuration.nix @@ -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; diff --git a/hosts/server/hardware-configuration.nix b/hosts/server/hardware-configuration.nix index cb43ffc..c814bf6 100644 --- a/hosts/server/hardware-configuration.nix +++ b/hosts/server/hardware-configuration.nix @@ -22,6 +22,7 @@ boot.kernelModules = [ "kvm-amd" ]; boot.extraModulePackages = [ ]; boot.tmpOnTmpfs = true; + zramSwap.enable = true; fileSystems."/" = { device = "/dev/disk/by-label/NIXROOT";