summary refs log tree commit diff
path: root/nixos
diff options
context:
space:
mode:
authorKirill Elagin <kirelagin@gmail.com>2014-06-11 13:17:42 +0400
committerKirill Elagin <kirelagin@gmail.com>2014-06-11 13:17:42 +0400
commit1208dd4df0602fb2f413a643eb9a7367bf1b6443 (patch)
tree3ed3d0d4bd20afc0b8d8f903c887f17f5be614ce /nixos
parent80721cdd41ff107c650e8349a03bea1f6f43cfbb (diff)
downloadnixpkgs-1208dd4df0602fb2f413a643eb9a7367bf1b6443.tar
nixpkgs-1208dd4df0602fb2f413a643eb9a7367bf1b6443.tar.gz
nixpkgs-1208dd4df0602fb2f413a643eb9a7367bf1b6443.tar.bz2
nixpkgs-1208dd4df0602fb2f413a643eb9a7367bf1b6443.tar.lz
nixpkgs-1208dd4df0602fb2f413a643eb9a7367bf1b6443.tar.xz
nixpkgs-1208dd4df0602fb2f413a643eb9a7367bf1b6443.tar.zst
nixpkgs-1208dd4df0602fb2f413a643eb9a7367bf1b6443.zip
Fix configuring apache with extra user/group
This fix is consistent with all the other modules.
Diffstat (limited to 'nixos')
-rw-r--r--nixos/modules/services/web-servers/apache-httpd/default.nix8
1 files changed, 4 insertions, 4 deletions
diff --git a/nixos/modules/services/web-servers/apache-httpd/default.nix b/nixos/modules/services/web-servers/apache-httpd/default.nix
index 75ec6671d15..c76f127b721 100644
--- a/nixos/modules/services/web-servers/apache-httpd/default.nix
+++ b/nixos/modules/services/web-servers/apache-httpd/default.nix
@@ -594,17 +594,17 @@ in
                      message = "SSL is enabled for HTTPD, but sslServerCert and/or sslServerKey haven't been specified."; }
                  ];
 
-    users.extraUsers = optionalAttrs (mainCfg.user == "wwwrun") singleton
+    users.extraUsers = optionalAttrs (mainCfg.user == "wwwrun") (singleton
       { name = "wwwrun";
         group = "wwwrun";
         description = "Apache httpd user";
         uid = config.ids.uids.wwwrun;
-      };
+      });
 
-    users.extraGroups = optionalAttrs (mainCfg.group == "wwwrun") singleton
+    users.extraGroups = optionalAttrs (mainCfg.group == "wwwrun") (singleton
       { name = "wwwrun";
         gid = config.ids.gids.wwwrun;
-      };
+      });
 
     environment.systemPackages = [httpd] ++ concatMap (svc: svc.extraPath) allSubservices;