m 1 gum: add swap to server config
This commit is contained in:
parent
78660ea002
commit
2b9d7bdda1
@ -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
makefu/2configs/fs/simple-swap.nix
Normal file
11
makefu/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 New Issue
Block a user