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

Hamish 3a2b0cdf abfac62d

Changed files
+11 -1
nixos
modules
services
web-servers
+11 -1
nixos/modules/services/web-servers/traefik.nix
···
'';
};
package = mkOption {
default = pkgs.traefik;
defaultText = "pkgs.traefik";
···
];
Type = "simple";
User = "traefik";
-
Group = "traefik";
Restart = "on-failure";
StartLimitInterval = 86400;
StartLimitBurst = 5;
···
'';
};
+
group = mkOption {
+
default = "traefik";
+
type = types.string;
+
example = "docker";
+
description = ''
+
Set the group that traefik runs under.
+
For the docker backend this needs to be set to <literal>docker</literal> instead.
+
'';
+
};
+
package = mkOption {
default = pkgs.traefik;
defaultText = "pkgs.traefik";
···
];
Type = "simple";
User = "traefik";
+
Group = cfg.group;
Restart = "on-failure";
StartLimitInterval = 86400;
StartLimitBurst = 5;