summaryrefslogtreecommitdiffstats
path: root/2configs
diff options
context:
space:
mode:
authormakefu <github@syntax-fehler.de>2015-11-14 01:49:31 +0100
committermakefu <github@syntax-fehler.de>2015-11-14 01:49:31 +0100
commitca46bbb3f684a0b04dc5f45d1055138792c283f0 (patch)
treee1358c8d0873dd51ec5f20242d0168c012193cc7 /2configs
parent27da531f14e7b99662c19de4bc4c626035026b2a (diff)
m 1 gum: add swap to server config
Diffstat (limited to '2configs')
-rw-r--r--2configs/fs/simple-swap.nix11
1 files changed, 11 insertions, 0 deletions
diff --git a/2configs/fs/simple-swap.nix b/2configs/fs/simple-swap.nix
new file mode 100644
index 000000000..8c161b287
--- /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"; }
+ ];
+}