diff --git a/ops/nixos/swann/default.nix b/ops/nixos/swann/default.nix index 7b427f0847..97d457c1d9 100644 --- a/ops/nixos/swann/default.nix +++ b/ops/nixos/swann/default.nix @@ -119,6 +119,15 @@ in { openPorts = false; unifiPackage = pkgs.unifiBeta; }; + services.prometheus.exporters.unifi-poller = { + enable = true; + controllers = [{ + url = "https://localhost:8443"; + verify_ssl = false; + user = "unifipoller"; + pass = pkgs.writeTextFile { name = "unifipoller-password"; text = "unifipoller"; }; + }]; + }; networking.firewall = { interfaces.ens-general = {