From 01faaeb4bdb9e7952093f3699f2f4b1b36a811cd Mon Sep 17 00:00:00 2001 From: Baitinq Date: Mon, 10 Oct 2022 23:10:04 +0200 Subject: [PATCH] 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. --- nixos/modules/services/misc/gitolite.nix | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/nixos/modules/services/misc/gitolite.nix b/nixos/modules/services/misc/gitolite.nix index 88b9ac4a0a33..012abda2d76f 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;