diff options
author | Tuomas Tynkkynen <tuomas@tuxera.com> | 2016-04-28 01:14:17 +0300 |
---|---|---|
committer | Tuomas Tynkkynen <tuomas@tuxera.com> | 2016-04-28 01:14:17 +0300 |
commit | de0847c7310c88a68ee6a19012a296db9f66b986 (patch) | |
tree | 0a355cdaae65ef8c866fa1c0b8ea916cc2f712b9 /nixos/modules/services/misc/taskserver/default.nix | |
parent | 49d1acb50f6465aceb5502de62e0c5d3a3d1d1a4 (diff) |
taskserver service: Really check that it is enabled
Diffstat (limited to 'nixos/modules/services/misc/taskserver/default.nix')
-rw-r--r-- | nixos/modules/services/misc/taskserver/default.nix | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/nixos/modules/services/misc/taskserver/default.nix b/nixos/modules/services/misc/taskserver/default.nix index 8459aafeee737..b7d14e90a2b72 100644 --- a/nixos/modules/services/misc/taskserver/default.nix +++ b/nixos/modules/services/misc/taskserver/default.nix @@ -449,7 +449,7 @@ in { }; }; }) - (mkIf needToCreateCA { + (mkIf (cfg.enable && needToCreateCA) { systemd.services.taskserver-ca = { wantedBy = [ "taskserver.service" ]; after = [ "taskserver-init.service" ]; @@ -533,7 +533,7 @@ in { ''; }; }) - (mkIf (cfg.listenHost != "localhost") { + (mkIf (cfg.enable && cfg.listenHost != "localhost") { networking.firewall.allowedTCPPorts = [ cfg.listenPort ]; }) { meta.doc = ./taskserver.xml; } |