diff --git a/1systems/gum.nix b/1systems/gum.nix index 8dd347b..44ab8c6 100644 --- a/1systems/gum.nix +++ b/1systems/gum.nix @@ -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 diff --git a/2configs/fs/simple-swap.nix b/2configs/fs/simple-swap.nix new file mode 100644 index 0000000..8c161b2 --- /dev/null +++ b/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"; } + ]; +}