about summary refs log tree commit diff
path: root/hosts/common/server/unifi.nix
diff options
context:
space:
mode:
authorFranck Cuny <franck@fcuny.net>2022-03-06 19:27:09 -0800
committerFranck Cuny <franck@fcuny.net>2022-03-06 19:27:09 -0800
commit4df2b2ee538164cef64822fed071f6a04411a567 (patch)
tree719e1faabbf854dbef2dee5b2b9eb508527f5569 /hosts/common/server/unifi.nix
parenttraefik: proper configuration for unifi (diff)
downloadworld-4df2b2ee538164cef64822fed071f6a04411a567.tar.gz
unifi: set the correct name for the poller's unit
Diffstat (limited to 'hosts/common/server/unifi.nix')
-rw-r--r--hosts/common/server/unifi.nix4
1 files changed, 2 insertions, 2 deletions
diff --git a/hosts/common/server/unifi.nix b/hosts/common/server/unifi.nix
index 52635f0..ed1f82e 100644
--- a/hosts/common/server/unifi.nix
+++ b/hosts/common/server/unifi.nix
@@ -52,8 +52,8 @@ in {
     systemd.services.unifi-available = {
       description = "Wait for Unifi to be available";
       after = [ "unifi.service" ];
-      before = [ "prometheus-unifi-exporter.service" ];
-      wantedBy = [ "prometheus-unifi-exporter.service" ];
+      before = [ "unifi-poller.service" ];
+      wantedBy = [ "unifi-poller.service" ];
       serviceConfig = {
         ExecStart =
           "${pkgs.curl}/bin/curl --insecure 'https://localhost:8443/'";