about summary refs log tree commit diff
diff options
context:
space:
mode:
authorEmile <git@emile.space>2024-06-09 00:25:51 +0200
committerEmile <git@emile.space>2024-06-09 00:25:51 +0200
commitaa029646b6ecde818dfa7cda6b0fe7d5476ced38 (patch)
tree3a9a6069056bb3f04d04bef56d0d79b0dbafb639
parent5a0e9bc57f578da2dd8578220acfd18c7484ec00 (diff)
git user and group foo
-rw-r--r--nix/hosts/corrino/www/cgit.emile.space.nix16
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;
+	};
 }