about summary refs log tree commit diff
path: root/modules/nixos/git
diff options
context:
space:
mode:
authorAzat Bahawi <azat@bahawi.net>2023-09-20 15:26:47 +0300
committerAzat Bahawi <azat@bahawi.net>2023-09-20 15:26:47 +0300
commit837fc97b30a41d766dd53a2370f6cb1d26364f9a (patch)
tree63ae83af789930c9a2035b9f9e43fbee166ab27b /modules/nixos/git
parent2023-09-16 (diff)
2023-09-20
Diffstat (limited to 'modules/nixos/git')
-rw-r--r--modules/nixos/git/default.nix4
1 files changed, 2 insertions, 2 deletions
diff --git a/modules/nixos/git/default.nix b/modules/nixos/git/default.nix
index 5fe4391..9fb43db 100644
--- a/modules/nixos/git/default.nix
+++ b/modules/nixos/git/default.nix
@@ -73,9 +73,9 @@ in {
             fastcgi_param QUERY_STRING $args;
             fastcgi_param HTTP_HOST $server_name;
 
-            # This makes `go get ...` work.
+            # This makes `go get ...` work and adds analytics.
             sub_filter '</head>'
-                '<meta name="go-import" content="$host$uri git https://$host$uri"></head>';
+                '<meta name="go-import" content="$host$uri git https://$host$uri"><script defer data-domain="${cfg.server.domain}" src="https://plausible.shire.net/js/script.js"></script></head>';
             sub_filter_once on;
           '';
           "~* ^.+(cgit.css|robots.txt)$".extraConfig = ''

Consider giving Nix/NixOS a try! <3