nixos-config/2configs/fs/simple-swap.nix
2015-11-14 01:49:31 +01:00

12 lines
158 B
Nix

_:
{
# do not swap that often
boot.kernel.sysctl = {
"vm.swappiness" = 25;
};
swapDevices = [
{ device = "/dev/disk/by-label/swap"; }
];
}