m 1 gum: add swap to server config
This commit is contained in:
parent
27da531f14
commit
ca46bbb3f6
|
@ -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
|
||||
|
||||
|
|
11
2configs/fs/simple-swap.nix
Normal file
11
2configs/fs/simple-swap.nix
Normal file
|
@ -0,0 +1,11 @@
|
|||
_:
|
||||
{
|
||||
# do not swap that often
|
||||
boot.kernel.sysctl = {
|
||||
"vm.swappiness" = 25;
|
||||
};
|
||||
|
||||
swapDevices = [
|
||||
{ device = "/dev/disk/by-label/swap"; }
|
||||
];
|
||||
}
|
Loading…
Reference in a new issue