diff options
-rw-r--r-- | ops/nixos/smtprelay.nix | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/ops/nixos/smtprelay.nix b/ops/nixos/smtprelay.nix index ca960f5190a8..044902b15a9a 100644 --- a/ops/nixos/smtprelay.nix +++ b/ops/nixos/smtprelay.nix @@ -6,6 +6,7 @@ let inherit (lib) concatStringsSep mkEnableOption + mkIf mkOption types ; @@ -36,7 +37,7 @@ in { }; }; - config = { + config = mkIf cfg.enable { systemd.services.smtprelay = { inherit description; script = "${config.depot.third_party.smtprelay}/bin/smtprelay ${prepareArgs cfg.args}"; |