summaryrefslogtreecommitdiffstats
path: root/makefu/2configs/fs/simple-swap.nix
blob: 8c161b2872b85a919eb2259621301b25e24152e6 (plain)
1
2
3
4
5
6
7
8
9
10
11
_:
{
  # do not swap that often
  boot.kernel.sysctl = {
    "vm.swappiness" = 25;
  };

  swapDevices = [
    { device = "/dev/disk/by-label/swap"; }
  ];
}