about summary refs log tree commit diff
path: root/nixos/modules
diff options
context:
space:
mode:
authorTuomas Tynkkynen <tuomas@tuxera.com>2016-04-28 01:14:17 +0300
committerTuomas Tynkkynen <tuomas@tuxera.com>2016-04-28 01:14:17 +0300
commitde0847c7310c88a68ee6a19012a296db9f66b986 (patch)
tree0a355cdaae65ef8c866fa1c0b8ea916cc2f712b9 /nixos/modules
parent49d1acb50f6465aceb5502de62e0c5d3a3d1d1a4 (diff)
downloadnixlib-de0847c7310c88a68ee6a19012a296db9f66b986.tar
nixlib-de0847c7310c88a68ee6a19012a296db9f66b986.tar.gz
nixlib-de0847c7310c88a68ee6a19012a296db9f66b986.tar.bz2
nixlib-de0847c7310c88a68ee6a19012a296db9f66b986.tar.lz
nixlib-de0847c7310c88a68ee6a19012a296db9f66b986.tar.xz
nixlib-de0847c7310c88a68ee6a19012a296db9f66b986.tar.zst
nixlib-de0847c7310c88a68ee6a19012a296db9f66b986.zip
taskserver service: Really check that it is enabled
Diffstat (limited to 'nixos/modules')
-rw-r--r--nixos/modules/services/misc/taskserver/default.nix4
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 8459aafeee73..b7d14e90a2b7 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; }