diff options
author | Kirill Elagin <kirelagin@gmail.com> | 2014-06-11 13:17:42 +0400 |
---|---|---|
committer | Kirill Elagin <kirelagin@gmail.com> | 2014-06-11 13:17:42 +0400 |
commit | 1208dd4df0602fb2f413a643eb9a7367bf1b6443 (patch) | |
tree | 3ed3d0d4bd20afc0b8d8f903c887f17f5be614ce /nixos/modules/services/web-servers/apache-httpd | |
parent | 80721cdd41ff107c650e8349a03bea1f6f43cfbb (diff) | |
download | nixlib-1208dd4df0602fb2f413a643eb9a7367bf1b6443.tar nixlib-1208dd4df0602fb2f413a643eb9a7367bf1b6443.tar.gz nixlib-1208dd4df0602fb2f413a643eb9a7367bf1b6443.tar.bz2 nixlib-1208dd4df0602fb2f413a643eb9a7367bf1b6443.tar.lz nixlib-1208dd4df0602fb2f413a643eb9a7367bf1b6443.tar.xz nixlib-1208dd4df0602fb2f413a643eb9a7367bf1b6443.tar.zst nixlib-1208dd4df0602fb2f413a643eb9a7367bf1b6443.zip |
Fix configuring apache with extra user/group
This fix is consistent with all the other modules.
Diffstat (limited to 'nixos/modules/services/web-servers/apache-httpd')
-rw-r--r-- | nixos/modules/services/web-servers/apache-httpd/default.nix | 8 |
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 75ec6671d156..c76f127b721e 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; |