1 { ayo_public_key, pkgs, config, ... }: let
10 "caddy".extraGroups = [ "git" ];
17 useDefaultShell = true;
18 openssh.authorizedKeys.keys = [ ayo_public_key ];
24 useUserPackages = true;
28 home.stateVersion = "26.05";
32 settings.init.defaultBranch = "main";
38 caddy.virtualHosts."git.ayoreis.com".extraConfig = let
41 @git header User-Agent git/*
45 cgi @git ${pkgs.git}/bin/git-http-backend {
46 env GIT_PROJECT_ROOT=${home}
49 cgi ${gitweb}/gitweb.cgi {
50 env GITWEB_CONFIG=${config.services.gitweb.gitwebConfigFile}
54 gitweb.extraConfig = ''
55 our $export_ok = "git-daemon-export-ok";
56 our $site_name = "Repositories";
57 $feature{'pathinfo'}{'default'} = [1];
63 config.safe.directory = "*";