diff options
Diffstat (limited to 'configuration')
-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"; |