stockholm/krebs/2configs/shack/prometheus/unifi.nix
2019-06-20 22:25:46 +02:00

11 lines
355 B
Nix

{lib, ... }:
{
services.prometheus.exporters.unifi = {
enable = true;
unifiAddress = "https://unifi.shack:8443/";
unifiInsecure = true;
unifiUsername = "prometheus"; # needed manual login after setup to confirm the password
unifiPassword = lib.replaceChars ["\n"] [""] (builtins.readFile <secrets/shack/unifi-prometheus-pw>);
};
}