diff options
author | makefu <github@syntax-fehler.de> | 2015-11-14 01:49:31 +0100 |
---|---|---|
committer | makefu <github@syntax-fehler.de> | 2015-11-14 01:49:31 +0100 |
commit | 2b9d7bdda10689e8bd8f7ed39830fd274c02457b (patch) | |
tree | fdd8b89a902796a9b97031dc9bbec46532bae9d3 /makefu/2configs/fs | |
parent | 78660ea002d5912eb8d06da1895cc6e34bd5e6eb (diff) |
m 1 gum: add swap to server config
Diffstat (limited to 'makefu/2configs/fs')
-rw-r--r-- | makefu/2configs/fs/simple-swap.nix | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/makefu/2configs/fs/simple-swap.nix b/makefu/2configs/fs/simple-swap.nix new file mode 100644 index 000000000..8c161b287 --- /dev/null +++ b/makefu/2configs/fs/simple-swap.nix @@ -0,0 +1,11 @@ +_: +{ + # do not swap that often + boot.kernel.sysctl = { + "vm.swappiness" = 25; + }; + + swapDevices = [ + { device = "/dev/disk/by-label/swap"; } + ]; +} |