From 68779da2430f3f6df9b4636732ea70916fbc5d92 Mon Sep 17 00:00:00 2001 From: eyjhb Date: Tue, 3 Dec 2024 22:06:25 +0100 Subject: [PATCH] gerd: changed zramswap comment --- machines/gerd.nix | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/machines/gerd.nix b/machines/gerd.nix index f2ea44e..d62607a 100644 --- a/machines/gerd.nix +++ b/machines/gerd.nix @@ -25,13 +25,6 @@ ./gerd/services/matrix-synapse.nix ]; - # TODO: place this a better place - zramSwap = { - enable = true; - memoryPercent = 75; - algorithm = "lz4"; - }; - networking.hostName = "gerd"; networking.hostId = "e1166ac9"; @@ -64,6 +57,14 @@ }; }; + # setup zramswap (we are very ram limited) + zramSwap = { + enable = true; + memoryPercent = 75; + algorithm = "lz4"; + }; + + # TMP FIX FOR https://github.com/nix-community/impermanence/issues/229 boot.initrd.systemd.suppressedUnits = [ "systemd-machine-id-commit.service" ]; systemd.suppressedSystemUnits = [ "systemd-machine-id-commit.service" ];