From b6abc4a1cff54669c0c1ab8658f23c87d9d0ad82 Mon Sep 17 00:00:00 2001 From: ashisgreat22 Date: Thu, 19 Mar 2026 00:22:48 +0100 Subject: [PATCH] Configure zram swap with zstd and 50% memory limit --- configuration.nix | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/configuration.nix b/configuration.nix index 649816e..b8056db 100644 --- a/configuration.nix +++ b/configuration.nix @@ -7,7 +7,11 @@ services.logrotate.checkConfig = false; boot.tmp.cleanOnBoot = true; - zramSwap.enable = true; + zramSwap = { + enable = true; + memoryPercent = 50; + algorithm = "zstd"; + }; networking.hostName = "nixos"; networking.domain = "";