nixconfigs/hosts/framenix/swap.nix

11 lines
203 B
Nix
Raw Normal View History

2024-01-11 01:13:42 +01:00
{
swapDevices = [ { device = "/dev/disk/by-uuid/24c47f3d-0d3e-4575-92a2-174b5a6b6086"; } ];
2024-01-11 01:13:42 +01:00
zramSwap = {
enable = true;
memoryPercent = 20;
};
boot.kernel.sysctl."vm.swappiness" = 9;
}