From d46dab2a072e89f3663967b902e8b1b4e5fc5443 Mon Sep 17 00:00:00 2001 From: Jasper Ras Date: Fri, 7 Feb 2025 21:47:14 +0100 Subject: cgit scanpath --- configuration/snorlax/git.nix | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/configuration/snorlax/git.nix b/configuration/snorlax/git.nix index e4cee27..4b200c5 100644 --- a/configuration/snorlax/git.nix +++ b/configuration/snorlax/git.nix @@ -1,18 +1,20 @@ { pkgs, ... }: +let + home = "/var/lib/git"; +in { networking.firewall.allowedTCPPorts = [ 80 ]; + services.cgit.jap56 = { enable = true; group = "git"; - repos = { - nixos.desc = "Contains my NixOS configuration"; - nixos.path = "/var/lib/git/nixos.git"; - }; + scanPath = "${home}"; }; + users.groups.git = {}; users.users.git = { isNormalUser = true; - home = "/var/lib/git"; + home = "${home}"; shell = pkgs.zsh; group = "git"; hashedPassword = "$6$Rc//lmBr5orYHn.0$M9y3Zj4zCe723r8hYGIhPC5kPv5SVGHjF1FsjrT9IIx7trxuNTLtLDQVL9lhmR5/7bFMUFEf0CMx9w7.vgXgY0"; -- cgit v1.2.3