From aa029646b6ecde818dfa7cda6b0fe7d5476ced38 Mon Sep 17 00:00:00 2001 From: Emile Date: Sun, 9 Jun 2024 00:25:51 +0200 Subject: git user and group foo --- nix/hosts/corrino/www/cgit.emile.space.nix | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) (limited to 'nix') 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; + }; } -- cgit 1.4.1