From 080ae016d6b281f06404da05b1e69ea0ad706650 Mon Sep 17 00:00:00 2001 From: Emile Date: Sun, 29 Sep 2024 00:02:29 +0200 Subject: add cgit user to git group --- nix/hosts/corrino/www/git/cgit.nix | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'nix') diff --git a/nix/hosts/corrino/www/git/cgit.nix b/nix/hosts/corrino/www/git/cgit.nix index 4e4fe1a..ff60da3 100644 --- a/nix/hosts/corrino/www/git/cgit.nix +++ b/nix/hosts/corrino/www/git/cgit.nix @@ -33,6 +33,9 @@ in }; }; + # add the cgit user to the git group allowing them to read the git repos + users.groups."git".members = [ "cgit" ]; + services = { nginx.virtualHosts."git.emile.space" = { forceSSL = true; @@ -42,8 +45,13 @@ in cgit.main = { enable = true; package = pkgs.cgit-pink; + + user = "cgit"; + group = "cgit"; + nginx.virtualHost = "git.emile.space"; nginx.location = "/"; + repos = { # ops -- cgit 1.4.1