From 13d9fdcfc7405e5edaff27d8f849204f0931f4f6 Mon Sep 17 00:00:00 2001 From: Franck Cuny Date: Sat, 7 Jan 2023 13:35:37 -0800 Subject: fix(modules/unifi): remove the poller The poller refuses to start, as the name of the binary has been updated, and the upstream module is not reflecting that change. The service has also been renamed from `unifi-poller` to `unpoller`, but this is not working for now. Let's get rid of it as a temporary fix while looking at the correct solution. --- modules/services/unifi/default.nix | 32 -------------------------------- 1 file changed, 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; -- cgit 1.4.1