diff options
author | Jasper Ras <jaspert.ras@gmail.com> | 2025-02-07 21:47:14 +0100 |
---|---|---|
committer | Jasper Ras <jaspert.ras@gmail.com> | 2025-02-07 22:23:57 +0100 |
commit | d46dab2a072e89f3663967b902e8b1b4e5fc5443 (patch) | |
tree | 8e01441aa3f758c66156a4932be8c87ffeddb73a | |
parent | 7ab8c1f265889c491782f65100c5441f97e13d74 (diff) |
cgit scanpath
-rw-r--r-- | configuration/snorlax/git.nix | 12 |
1 files 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"; |