diff options
author | Baitinq <manuelpalenzuelamerino@gmail.com> | 2022-10-10 23:10:04 +0200 |
---|---|---|
committer | Baitinq <manuelpalenzuelamerino@gmail.com> | 2022-10-10 23:14:46 +0200 |
commit | 01faaeb4bdb9e7952093f3699f2f4b1b36a811cd (patch) | |
tree | d562e4919fa9a74675ea583722994dbfd82414c3 | |
parent | fd745268a4f48d25875cc32b17abb0b32f45207e (diff) | |
download | nixpkgs-01faaeb4bdb9e7952093f3699f2f4b1b36a811cd.tar nixpkgs-01faaeb4bdb9e7952093f3699f2f4b1b36a811cd.tar.gz nixpkgs-01faaeb4bdb9e7952093f3699f2f4b1b36a811cd.tar.bz2 nixpkgs-01faaeb4bdb9e7952093f3699f2f4b1b36a811cd.tar.lz nixpkgs-01faaeb4bdb9e7952093f3699f2f4b1b36a811cd.tar.xz nixpkgs-01faaeb4bdb9e7952093f3699f2f4b1b36a811cd.tar.zst nixpkgs-01faaeb4bdb9e7952093f3699f2f4b1b36a811cd.zip |
nixos/gitolite: add 'description' module option
This option allows for the customization of the description of the created gitolite user. An example of this being useful is for the integration of gitolite with cgit, which itself uses the gitolite user's description as the author of the git repo displayed in its generated site.
-rw-r--r-- | nixos/modules/services/misc/gitolite.nix | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/nixos/modules/services/misc/gitolite.nix b/nixos/modules/services/misc/gitolite.nix index 88b9ac4a0a3..012abda2d76 100644 --- a/nixos/modules/services/misc/gitolite.nix +++ b/nixos/modules/services/misc/gitolite.nix @@ -101,6 +101,14 @@ in ''; }; + description = mkOption { + type = types.str; + default = "Gitolite user"; + description = lib.mdDoc '' + Gitolite user account's description. + ''; + }; + group = mkOption { type = types.str; default = "gitolite"; @@ -145,7 +153,7 @@ in ''; users.users.${cfg.user} = { - description = "Gitolite user"; + description = cfg.description; home = cfg.dataDir; uid = config.ids.uids.gitolite; group = cfg.group; |