nixos/modules/homelab/scrutiny.nix

27 lines
546 B
Nix
Raw Normal View History

2026-01-20 23:41:10 +01:00
{
config,
lib,
...
}:
lib.mkIf config.fireproof.homelab.enable {
services.restic.backups.homelab.paths = ["/var/lib/scrutiny"];
services.scrutiny = {
enable = true;
collector.enable = true;
settings = {
web.listen.port = 8089;
};
};
services.oauth2-proxy.nginx.virtualHosts."scrutiny.nickolaj.com".allowed_groups = ["admin"];
services.nginx.virtualHosts."scrutiny.nickolaj.com" = {
enableACME = true;
forceSSL = true;
locations."/" = {
proxyPass = "http://localhost:8089";
};
};
}