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:
parent
6e803a684f
commit
ec59929c9f
@ -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 {
|
home = mkOption {
|
||||||
default = "/var/lib/jenkins";
|
default = "/var/lib/jenkins";
|
||||||
type = types.path;
|
type = types.path;
|
||||||
@ -87,6 +96,7 @@ in {
|
|||||||
createHome = true;
|
createHome = true;
|
||||||
home = cfg.home;
|
home = cfg.home;
|
||||||
group = cfg.group;
|
group = cfg.group;
|
||||||
|
extraGroups = cfg.extraGroups;
|
||||||
useDefaultShell = true;
|
useDefaultShell = true;
|
||||||
uid = config.ids.uids.jenkins;
|
uid = config.ids.uids.jenkins;
|
||||||
};
|
};
|
||||||
|
Loading…
x
Reference in New Issue
Block a user