all repos — nixfiles @ 5138ed9bfa6a4e822d091519f2a7afaeee5692ca

System and user configuration, managed by nix and home-manager

bare-metal: enable zramSwap
Alan Pearce alan@alanpearce.eu
Wed, 28 Aug 2019 15:39:13 +0200
commit

5138ed9bfa6a4e822d091519f2a7afaeee5692ca

parent

e658a7b8402130af9393657ccddc2cf7ded2e6a3

1 files changed, 4 insertions(+), 0 deletions(-)

jump to
M modules/hardware/bare-metal.nixmodules/hardware/bare-metal.nix
@@ -16,6 +16,10 @@ "net.ipv4.tcp_allowed_congestion_control" = "illinois reno lp";     "net.ipv4.tcp_congestion_control" = "illinois";
   };
 
+  zramSwap = {
+    enable = true;
+    algorithm = "zstd";
+  };
   boot.tmpOnTmpfs = true;
 
   boot.kernelModules = [ "bfq" ];