3
0
Fork 0
forked from mirrors/nixpkgs

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.
This commit is contained in:
Baitinq 2022-10-10 23:10:04 +02:00
parent fd745268a4
commit 01faaeb4bd
No known key found for this signature in database
GPG key ID: FD14C4672CA7D2C5

View file

@ -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;