Compare commits

...

2 Commits

Author SHA1 Message Date
7f622a404e
magpie: add goatcounter 2024-01-21 22:37:29 +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 = [];
@ -44,6 +45,7 @@
usbutils
wget
zip
goatcounter.packages.aarch64-linux.goatcounter
];
programs.mosh.enable = true;
@ -99,6 +101,18 @@
virtualHost.listenPort = 4001;
};
services.goatcounter = {
enable = true;
environmentFile = "/var/lib/goatcounter.env";
extraArgs = ["-listen='*:8002'" "-tls=proxy" ];
database = {
backend = "sqlite";
name = "goatcounter";
user = "goatcounter";
automigrate = true;
};
};
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 = {