summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorAlan Pearce2024-07-28 11:40:39 +0200
committerAlan Pearce2024-07-28 11:40:39 +0200
commit13a9664c5b74b554af57773a48624c327c65e119 (patch)
treea58071822d797f6cc27bcd4e61b01b886cd791cd
parent1f4742a1405e23be8e2017dd8b5adb86877ad704 (diff)
downloadnixfiles-13a9664c5b74b554af57773a48624c327c65e119.tar.lz
nixfiles-13a9664c5b74b554af57773a48624c327c65e119.tar.zst
nixfiles-13a9664c5b74b554af57773a48624c327c65e119.zip
linde: use NixOS goatcounter module
m---------packages0
-rw-r--r--system/linde.nix21
2 files changed, 11 insertions, 10 deletions
diff --git a/packages b/packages
-Subproject b8ac79d7ead214f96cc8b642fa7ce085a2ee204
+Subproject 28d9936cec38475f6766cf07dd0b8a9d279e763
diff --git a/system/linde.nix b/system/linde.nix
index ee680eb0..730e0a14 100644
--- a/system/linde.nix
+++ b/system/linde.nix
@@ -24,7 +24,6 @@ in
   imports =
     [
       <personal/modules/nixos/laminar.nix>
-      <personal/modules/nixos/goatcounter.nix>
       <home-manager/nixos>
       <agenix/modules/age.nix>
       <searchix/nix/modules>
@@ -352,15 +351,17 @@ in
 
   services.goatcounter = {
     enable = true;
-    listenAddress = "localhost";
+    address = "localhost";
     port = 8082;
-    package = (import <personal> { inherit pkgs; }).goatcounter;
-    settings = {
-      tls = "proxy";
-      websocket = true;
-      automigrate = true;
-      smtp = "smtp://localhost:25";
-    };
+    proxy = true;
+    extraArgs = [
+      "-db"
+      "sqlite3+db/goatcounter.sqlite3"
+      "-websocket"
+      "-automigrate"
+      "-smtp"
+      "smtp://localhost:25"
+    ];
   };
 
   services.powerdns =
@@ -805,7 +806,7 @@ in
             useACMEHost = "stats.alanpearce.eu";
             serverAliases = [ "*.stats.alanpearce.eu" ];
             extraConfig = ''
-              reverse_proxy ${srv.listenAddress}:${toString srv.port}
+              reverse_proxy ${srv.address}:${toString srv.port}
             '';
           };
         "go.alanpearce.eu" = {