From a75acfb7ef640c2367d4547b0f479e7acaad9017 Mon Sep 17 00:00:00 2001 From: Azat Bahawi Date: Sat, 15 Jul 2023 12:45:02 +0300 Subject: 2023-07-15 --- modules/nixos/git/default.nix | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'modules/nixos/git/default.nix') diff --git a/modules/nixos/git/default.nix b/modules/nixos/git/default.nix index 9236437..5fe4391 100644 --- a/modules/nixos/git/default.nix +++ b/modules/nixos/git/default.nix @@ -72,6 +72,11 @@ in { fastcgi_param PATH_INFO $uri; fastcgi_param QUERY_STRING $args; fastcgi_param HTTP_HOST $server_name; + + # This makes `go get ...` work. + sub_filter '' + ''; + sub_filter_once on; ''; "~* ^.+(cgit.css|robots.txt)$".extraConfig = '' root ${cfg.server.package}/cgit; -- cgit 1.4.1