Compare commits

...

2 Commits

Author SHA1 Message Date
eeeac073c7
magpie: add goatcounter 2024-01-21 14:05:17 +01:00
ea4390d0d5
goatcounter: add flake input 2024-01-21 13:47:06 +01:00
2 changed files with 30 additions and 1 deletions

View File

@ -34,6 +34,11 @@
inputs.nixpkgs.follows = "nixpkgs";
};
goatcounter = {
url = "github:connorfeeley/goatcounter-flake";
inputs.nixpkgs.follows = "nixpkgs";
};
home-manager = {
url = "github:nix-community/home-manager";
inputs.nixpkgs.follows = "nixpkgs";
@ -51,16 +56,17 @@
};
outputs = inputs @ {
goatcounter,
home-manager,
nixpkgs,
nix-xilinx,
nvim,
peerix,
project-cloud,
simple-nixos-mailserver,
sops-nix,
swaysw,
zremap,
project-cloud,
...
}: let
pkgs = nixpkgs.legacyPackages.x86_64-linux.pkgs;

View File

@ -3,6 +3,7 @@
pkgs,
lib,
project-cloud,
goatcounter,
...
}: {
imports = [];
@ -99,6 +100,19 @@
virtualHost.listenPort = 4001;
};
services.goatcounter = {
enable = true;
environmentFile = "/var/lib/goatcounter.env";
extraArgs = ["-listen='*:8002'" "-tls=none" "-debug=all"];
database = {
automigrate = true;
backend = "postgresql";
name = "goatcounter";
user = "goatcounter";
passwordFile = "/var/lib/goatcounter.passwd";
};
};
services.nextcloud = {
enable = true;
package = pkgs.nextcloud27;
@ -177,6 +191,15 @@
proxyPass = "http://localhost:${toString config.services.restya-board.virtualHost.listenPort}";
};
};
virtualHosts."stats.project-cloud.net" = {
quic = true;
forceSSL = true;
enableACME = true;
locations."/" = {
proxyPass = "http://localhost:8002/";
};
};
};
services.gitea = {