From 9c6264527337b6065ff0534c2a7b412480e6687b Mon Sep 17 00:00:00 2001 From: Russell O'Connor Date: Mon, 6 May 2013 11:11:04 -0400 Subject: [PATCH] Add braces to fix compilation errors. I don't understand how Apache gets away without them. --- .../services/web-servers/nginx/default.nix | 19 ++++++++++--------- 1 file changed, 10 insertions(+), 9 deletions(-) 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; + }); + }; }