m 1 gum: add swap to server config

This commit is contained in:
makefu 2015-11-14 01:49:31 +01:00
parent 78660ea002
commit 2b9d7bdda1
2 changed files with 12 additions and 0 deletions

View File

@ -9,6 +9,7 @@ in {
# TODO: copy this config or move to krebs
../2configs/tinc-basic-retiolum.nix
../2configs/headless.nix
../2configs/fs/simple-swap.nix
../2configs/fs/single-partition-ext4.nix
# ../2configs/iodined.nix

View File

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