diff options
author | Alan Pearce | 2019-08-28 15:39:13 +0200 |
---|---|---|
committer | Alan Pearce | 2019-08-28 15:39:13 +0200 |
commit | 5138ed9bfa6a4e822d091519f2a7afaeee5692ca (patch) | |
tree | b380454ff66be269689cfd4ca8ab24cd576ada30 /modules/hardware | |
parent | e658a7b8402130af9393657ccddc2cf7ded2e6a3 (diff) | |
download | nixfiles-5138ed9bfa6a4e822d091519f2a7afaeee5692ca.tar.lz nixfiles-5138ed9bfa6a4e822d091519f2a7afaeee5692ca.tar.zst nixfiles-5138ed9bfa6a4e822d091519f2a7afaeee5692ca.zip |
bare-metal: enable zramSwap
Diffstat (limited to 'modules/hardware')
-rw-r--r-- | modules/hardware/bare-metal.nix | 4 |
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" ]; |