From da7b5ed4465162b4963515edc71de7719062e2c3 Mon Sep 17 00:00:00 2001 From: Jean-Baptiste Giraudeau Date: Fri, 25 Oct 2024 20:44:34 +0200 Subject: [PATCH] nixos/gancio: add gancio to nginx extraGroups only if nginx enabled --- nixos/modules/services/web-apps/gancio.nix | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/nixos/modules/services/web-apps/gancio.nix b/nixos/modules/services/web-apps/gancio.nix index fa55db762c467..997384521e8a4 100644 --- a/nixos/modules/services/web-apps/gancio.nix +++ b/nixos/modules/services/web-apps/gancio.nix @@ -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 ]; + }; }; }