about summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--modules/services/unifi/default.nix32
1 files changed, 0 insertions, 32 deletions
diff --git a/modules/services/unifi/default.nix b/modules/services/unifi/default.nix
index 2b270a8..e5fc1fa 100644
--- a/modules/services/unifi/default.nix
+++ b/modules/services/unifi/default.nix
@@ -40,38 +40,6 @@ in
       unifiPackage = pkgs.unifiStable;
     };
 
-    services.unifi-poller = {
-      enable = true;
-
-      poller = {
-        quiet = true;
-      };
-      unifi.defaults = {
-        url = "https://127.0.0.1:8443";
-        user = "unifipoller";
-        pass = secrets."unifi/unifi-poller".path;
-        verify_ssl = false;
-      };
-
-      influxdb.disable = true;
-
-      prometheus = { http_listen = ":9130"; };
-    };
-
-    systemd.services.unifi-available = {
-      description = "Wait for Unifi to be available";
-      after = [ "unifi.service" ];
-      before = [ "unifi-poller.service" ];
-      wantedBy = [ "unifi-poller.service" ];
-      serviceConfig = {
-        ExecStart =
-          "${pkgs.curl}/bin/curl --insecure 'https://localhost:8443/'";
-        Restart = "on-failure";
-        RestartSec = "10";
-        Type = "oneshot";
-      };
-    };
-
     services.nginx.virtualHosts."${cfg.vhostName}" = {
       forceSSL = true;
       useACMEHost = cfg.vhostName;