about summary refs log tree commit diff
path: root/modules/services/gerrit
diff options
context:
space:
mode:
Diffstat (limited to 'modules/services/gerrit')
-rw-r--r--modules/services/gerrit/default.nix9
1 files changed, 9 insertions, 0 deletions
diff --git a/modules/services/gerrit/default.nix b/modules/services/gerrit/default.nix
index ab35533..a113894 100644
--- a/modules/services/gerrit/default.nix
+++ b/modules/services/gerrit/default.nix
@@ -17,6 +17,15 @@ in {
   };
 
   config = lib.mkIf cfg.enable {
+    users.users.git = {
+      description = "git";
+      home = cfg.stateDir;
+      useDefaultShell = true;
+      group = "git";
+      isSystemUser = true;
+    };
+    users.groups.git = { };
+
     services.gerrit = {
       enable = true;
       listenAddress = "[::]:4778";