add swap to skinny

This commit is contained in:
Cyryl Płotnicki 2022-06-18 17:50:20 +01:00
parent a7551693ec
commit d745e58d1f

View file

@ -23,12 +23,17 @@
fsType = "vfat"; fsType = "vfat";
}; };
swapDevices = [ ]; swapDevices = [{
device = "/swapfile";
size = 16 * 1024;
priority = 1;
}];
zramSwap = { zramSwap = {
enable = true; enable = true;
algorithm = "zstd"; algorithm = "zstd";
memoryPercent = 75; memoryPercent = 25;
priority = 10;
}; };
powerManagement.cpuFreqGovernor = lib.mkDefault "powersave"; powerManagement.cpuFreqGovernor = lib.mkDefault "powersave";