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" ];