diff --git a/nixos/boxes/skinnyv/hardware-configuration.nix b/nixos/boxes/skinnyv/hardware-configuration.nix index 35cfa310..833c333e 100644 --- a/nixos/boxes/skinnyv/hardware-configuration.nix +++ b/nixos/boxes/skinnyv/hardware-configuration.nix @@ -23,12 +23,17 @@ fsType = "vfat"; }; - swapDevices = [ ]; + swapDevices = [{ + device = "/swapfile"; + size = 16 * 1024; + priority = 1; + }]; zramSwap = { enable = true; algorithm = "zstd"; - memoryPercent = 75; + memoryPercent = 25; + priority = 10; }; powerManagement.cpuFreqGovernor = lib.mkDefault "powersave";