diff --git a/modules/services/web-servers/nginx/default.nix b/modules/services/web-servers/nginx/default.nix index da08751d0b5a..b26af1aa7445 100644 --- a/modules/services/web-servers/nginx/default.nix +++ b/modules/services/web-servers/nginx/default.nix @@ -74,14 +74,15 @@ in }; }; - users.extraUsers = optionalAttrs (cfg.user == "nginx") singleton - { name = "nginx"; - group = "nginx"; - uid = config.ids.uids.nginx; - }; + users.extraUsers = optionalAttrs (cfg.user == "nginx") (singleton + { name = "nginx"; + group = "nginx"; + uid = config.ids.uids.nginx; + }); - users.extraGroups = optionalAttrs (cfg.group == "nginx") singleton - { name = "nginx"; - gid = config.ids.gids.nginx; - }; + users.extraGroups = optionalAttrs (cfg.group == "nginx") (singleton + { name = "nginx"; + gid = config.ids.gids.nginx; + }); + }; }