nixos/jekins: add services.jenkins.extraGroups option

This makes it easy to give jenkins extra privileges by adding group
memberships. Use with care :-)
This commit is contained in:
Bjørn Forsman 2014-09-12 15:22:25 +02:00
parent 6e803a684f
commit ec59929c9f

View File

@ -30,6 +30,15 @@ in {
'';
};
extraGroups = mkOption {
type = types.listOf types.str;
default = [ ];
example = [ "wheel" "dialout" ];
description = ''
List of extra groups that the "jenkins" user should be a part of.
'';
};
home = mkOption {
default = "/var/lib/jenkins";
type = types.path;
@ -87,6 +96,7 @@ in {
createHome = true;
home = cfg.home;
group = cfg.group;
extraGroups = cfg.extraGroups;
useDefaultShell = true;
uid = config.ids.uids.jenkins;
};