hosts/mail-1: Move monitoring config for manually managed host to config directly
This commit is contained in:
parent
9ee8585716
commit
8d623692c7
@ -1,12 +0,0 @@
|
||||
{ ... }:
|
||||
|
||||
{
|
||||
networking.hostName = "mail-1";
|
||||
|
||||
clerie.monitoring = {
|
||||
enable = true;
|
||||
id = "208";
|
||||
pubkey = "s2GT9iYQmuiwkZ04KzSqqlIEbUJ6CT6i4htCjWYt2xs=";
|
||||
nixos = false;
|
||||
};
|
||||
}
|
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user