stockholm/makefu/2configs/fs/simple-swap.nix

12 lines
158 B
Nix
Raw Normal View History

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