nixos-config/2configs/fs/simple-swap.nix

12 lines
158 B
Nix
Raw Normal View History

2015-11-14 01:49:31 +01:00
_:
{
# do not swap that often
boot.kernel.sysctl = {
"vm.swappiness" = 25;
};
swapDevices = [
{ device = "/dev/disk/by-label/swap"; }
];
}