2019-06-20 20:21:56 +00:00
|
|
|
{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
|
2023-07-04 11:00:04 +00:00
|
|
|
unifiPassword = lib.replaceStrings ["\n"] [""] (builtins.readFile <secrets/shack/unifi-prometheus-pw>);
|
2019-06-20 20:21:56 +00:00
|
|
|
};
|
|
|
|
}
|