diff options
Diffstat (limited to 'nix/hosts/corrino/www/cgit.emile.space.nix')
-rw-r--r-- | nix/hosts/corrino/www/cgit.emile.space.nix | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/nix/hosts/corrino/www/cgit.emile.space.nix b/nix/hosts/corrino/www/cgit.emile.space.nix index 8cf0822..a34dc85 100644 --- a/nix/hosts/corrino/www/cgit.emile.space.nix +++ b/nix/hosts/corrino/www/cgit.emile.space.nix @@ -555,4 +555,20 @@ }; users.extraUsers.nginx.extraGroups = [ "git" ]; + + # Have to use lib.mkForce below, as the gitolite and gitDaemon user both + # configure the git user and group (differently) + + users.users.git = { + isSystemUser = true; + useDefaultShell = true; + description = lib.mkForce "cgit-pink, gitolite and gitDaemon"; + group = "git"; + extraGroups = [ "gitea" ]; + home = "/var/lib/git"; + uid = lib.mkForce 127; + }; + users.groups.git = { + gid = lib.mkForce 127; + }; } |