diff options
author | Bjørn Forsman <bjorn.forsman@gmail.com> | 2014-09-12 15:22:25 +0200 |
---|---|---|
committer | Bjørn Forsman <bjorn.forsman@gmail.com> | 2014-09-12 15:25:15 +0200 |
commit | ec59929c9f6eb2f109b93c5a517cfcbc10f31a30 (patch) | |
tree | b9b7c66f37bb9b0f9737c96853692be3cf2f962e /nixos/modules/services/continuous-integration/jenkins | |
parent | 6e803a684fff2db30f6e10e8dc5a830184a12b9e (diff) | |
download | nixpkgs-ec59929c9f6eb2f109b93c5a517cfcbc10f31a30.tar nixpkgs-ec59929c9f6eb2f109b93c5a517cfcbc10f31a30.tar.gz nixpkgs-ec59929c9f6eb2f109b93c5a517cfcbc10f31a30.tar.bz2 nixpkgs-ec59929c9f6eb2f109b93c5a517cfcbc10f31a30.tar.lz nixpkgs-ec59929c9f6eb2f109b93c5a517cfcbc10f31a30.tar.xz nixpkgs-ec59929c9f6eb2f109b93c5a517cfcbc10f31a30.tar.zst nixpkgs-ec59929c9f6eb2f109b93c5a517cfcbc10f31a30.zip |
nixos/jekins: add services.jenkins.extraGroups option
This makes it easy to give jenkins extra privileges by adding group memberships. Use with care :-)
Diffstat (limited to 'nixos/modules/services/continuous-integration/jenkins')
-rw-r--r-- | nixos/modules/services/continuous-integration/jenkins/default.nix | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/nixos/modules/services/continuous-integration/jenkins/default.nix b/nixos/modules/services/continuous-integration/jenkins/default.nix index 7418be1c6ba..29a81f066ab 100644 --- a/nixos/modules/services/continuous-integration/jenkins/default.nix +++ b/nixos/modules/services/continuous-integration/jenkins/default.nix @@ -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; }; |