1
0

hosts/mail-1: Move monitoring config for manually managed host to config directly

This commit is contained in:
clerie 2023-02-06 12:51:20 +01:00
parent 9ee8585716
commit 8d623692c7
2 changed files with 11 additions and 13 deletions

View File

@ -1,12 +0,0 @@
{ ... }:
{
networking.hostName = "mail-1";
clerie.monitoring = {
enable = true;
id = "208";
pubkey = "s2GT9iYQmuiwkZ04KzSqqlIEbUJ6CT6i4htCjWYt2xs=";
nixos = false;
};
}

View File

@ -3,7 +3,17 @@
with lib; with lib;
let 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: monitoringHosts = filterAttrs (name: host:
attrByPath ["clerie" "monitoring" "enable"] false host.config) attrByPath ["clerie" "monitoring" "enable"] false host.config)