summary refs log tree commit diff stats
path: root/modules/hardware
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/hardware
parente658a7b8402130af9393657ccddc2cf7ded2e6a3 (diff)
downloadnixos-configuration-5138ed9bfa6a4e822d091519f2a7afaeee5692ca.tar.lz
nixos-configuration-5138ed9bfa6a4e822d091519f2a7afaeee5692ca.tar.zst
nixos-configuration-5138ed9bfa6a4e822d091519f2a7afaeee5692ca.zip
bare-metal: enable zramSwap
Diffstat (limited to 'modules/hardware')
-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 298eb66..0a61790 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" ];