linde: use NixOS goatcounter module
Alan Pearce alan@alanpearce.eu
Sun, 28 Jul 2024 11:40:39 +0200
1 files changed, 11 insertions(+), 10 deletions(-)
jump to
M system/linde.nix → system/linde.nix
@@ -24,7 +24,6 @@ { 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 @@ system.stateVersion = "23.05"; # Did you read the comment? 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 @@ { 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" = {