diff --git a/hosts/artemis/default.nix b/hosts/artemis/default.nix index d8d629a..96465e0 100644 --- a/hosts/artemis/default.nix +++ b/hosts/artemis/default.nix @@ -1,5 +1,6 @@ { inputs, + config, lib, pkgs, ... @@ -53,9 +54,16 @@ in extraArgs = [ "-M" "409600,307200" - "-S" - "409600,307200" - ]; + ] + ++ ( + if config.swapDevices.zramSwap.enable or false then + [ + "-S" + "409600,307200" + ] + else + [ ] + ); }; services.sunshine = {