From 90a0f126cf26423d8b3604230e48290d2266070e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Felix=20Schr=C3=B6ter?= Date: Wed, 11 May 2022 19:55:45 +0200 Subject: [PATCH] feat(rpi4): enable zram --- rpi4.nix | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/rpi4.nix b/rpi4.nix index b8a40a4..efc3cbe 100644 --- a/rpi4.nix +++ b/rpi4.nix @@ -51,6 +51,10 @@ in with builtins; { ''; boot.kernelParams = [ "console=ttyAMA0,115200" "console=tty1" ]; + # improve memory performance + zramSwap.enable = true; + zramSwap.algorithm = "zstd"; + networking.domain = "home.felschr.com"; networking.firewall.allowedTCPPorts = [ 80 443 ];