diff --git a/hosts/mail-1/configuration.nix b/hosts/mail-1/configuration.nix deleted file mode 100644 index 80c5b38..0000000 --- a/hosts/mail-1/configuration.nix +++ /dev/null @@ -1,12 +0,0 @@ -{ ... }: - -{ - networking.hostName = "mail-1"; - - clerie.monitoring = { - enable = true; - id = "208"; - pubkey = "s2GT9iYQmuiwkZ04KzSqqlIEbUJ6CT6i4htCjWYt2xs="; - nixos = false; - }; -} diff --git a/hosts/monitoring-3/prometheus.nix b/hosts/monitoring-3/prometheus.nix index 15a1f1a..0b19c5d 100644 --- a/hosts/monitoring-3/prometheus.nix +++ b/hosts/monitoring-3/prometheus.nix @@ -3,7 +3,17 @@ with lib; let - hosts = _nixfiles.nixosConfigurations; + hosts = _nixfiles.nixosConfigurations // { + "mail-1".config = { + networking.hostName = "mail-1"; + clerie.monitoring = { + enable = true; + id = "208"; + pubkey = "s2GT9iYQmuiwkZ04KzSqqlIEbUJ6CT6i4htCjWYt2xs="; + nixos = false; + }; + }; + }; monitoringHosts = filterAttrs (name: host: attrByPath ["clerie" "monitoring" "enable"] false host.config)