blob: 401ecb0248721df3d4f26605f594435fdc8fc2f2 (
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.replaceChars ["\n"] [""] (builtins.readFile <secrets/shack/unifi-prometheus-pw>);
};
}
|