mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-07-23 17:12:27 +00:00
nixos/gancio: add gancio to nginx extraGroups only if nginx enabled (#352143)
This commit is contained in:
@@ -282,6 +282,8 @@ in
|
||||
];
|
||||
};
|
||||
# for nginx to access gancio socket
|
||||
users.users."${config.services.nginx.user}".extraGroups = [ config.users.users.${cfg.user}.group ];
|
||||
users.users."${config.services.nginx.user}" = lib.mkIf (config.services.nginx.enable) {
|
||||
extraGroups = [ config.users.users.${cfg.user}.group ];
|
||||
};
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user