11 lines
382 B
Nix
11 lines
382 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.replaceStrings ["\n"] [""] (builtins.readFile "${config.krebs.secret.directory}/shack/unifi-prometheus-pw");
|
|
};
|
|
}
|