summaryrefslogtreecommitdiffstats
path: root/krebs/2configs/shack/prometheus/unifi.nix
blob: 34e47add95f5019d336f7730c9f9859fd186e973 (plain)
1
2
3
4
5
6
7
8
9
10
{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.replaceStrings ["\n"] [""] (builtins.readFile <secrets/shack/unifi-prometheus-pw>);
  };
}