From 5138ed9bfa6a4e822d091519f2a7afaeee5692ca Mon Sep 17 00:00:00 2001 From: Alan Pearce Date: Wed, 28 Aug 2019 15:39:13 +0200 Subject: bare-metal: enable zramSwap --- modules/hardware/bare-metal.nix | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'modules/hardware') 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" ]; -- cgit 1.4.1