From 0fdbb402b56e027e67a1a5627975844626fc1d9d Mon Sep 17 00:00:00 2001 From: Franck Cuny Date: Thu, 26 May 2022 19:38:21 -0700 Subject: ref(gerrit): ensure the git user is present Change-Id: Ie217a14a20474b626a2c66116663b785193978c2 --- modules/services/gerrit/default.nix | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'modules') 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"; -- cgit 1.4.1