summary refs log tree commit diff stats
path: root/modules
diff options
context:
space:
mode:
authorAlan Pearce2019-08-28 15:39:13 +0200
committerAlan Pearce2019-08-28 15:39:13 +0200
commit5138ed9bfa6a4e822d091519f2a7afaeee5692ca (patch)
treeb380454ff66be269689cfd4ca8ab24cd576ada30 /modules
parente658a7b8402130af9393657ccddc2cf7ded2e6a3 (diff)
downloadnixfiles-5138ed9bfa6a4e822d091519f2a7afaeee5692ca.tar.lz
nixfiles-5138ed9bfa6a4e822d091519f2a7afaeee5692ca.tar.zst
nixfiles-5138ed9bfa6a4e822d091519f2a7afaeee5692ca.zip
bare-metal: enable zramSwap
Diffstat (limited to 'modules')
-rw-r--r--modules/hardware/bare-metal.nix4
1 files changed, 4 insertions, 0 deletions
diff --git a/modules/hardware/bare-metal.nix b/modules/hardware/bare-metal.nix
index 298eb66a..0a61790a 100644
--- a/modules/hardware/bare-metal.nix
+++ b/modules/hardware/bare-metal.nix
@@ -16,6 +16,10 @@
     "net.ipv4.tcp_congestion_control" = "illinois";
   };
 
+  zramSwap = {
+    enable = true;
+    algorithm = "zstd";
+  };
   boot.tmpOnTmpfs = true;
 
   boot.kernelModules = [ "bfq" ];