nixos/traefik: make group configurable for docker support (#34749)

authored by

Hamish and committed by
Jörg Thalheim
3a2b0cdf abfac62d

+11 -1
+11 -1
nixos/modules/services/web-servers/traefik.nix
··· 64 64 ''; 65 65 }; 66 66 67 + group = mkOption { 68 + default = "traefik"; 69 + type = types.string; 70 + example = "docker"; 71 + description = '' 72 + Set the group that traefik runs under. 73 + For the docker backend this needs to be set to <literal>docker</literal> instead. 74 + ''; 75 + }; 76 + 67 77 package = mkOption { 68 78 default = pkgs.traefik; 69 79 defaultText = "pkgs.traefik"; ··· 87 97 ]; 88 98 Type = "simple"; 89 99 User = "traefik"; 90 - Group = "traefik"; 100 + Group = cfg.group; 91 101 Restart = "on-failure"; 92 102 StartLimitInterval = 86400; 93 103 StartLimitBurst = 5;