1
0
Fork 0

Compare commits

...

2 Commits

7 changed files with 58 additions and 0 deletions

View File

@ -134,6 +134,8 @@
uptimestatus;
});
inherit lib self;
hydraJobs = {
inherit (self)
packages;

View File

@ -141,5 +141,17 @@
}
'';
clerie.system-auto-upgrade = {
allowReboot = true;
autoUpgrade = true;
};
clerie.monitoring = {
enable = true;
id = "399";
pubkey = "K7NkCFKSnMIgC0D5wejSpty56AYacfxE+feMsfWtHSo=";
bird = true;
};
system.stateVersion = "21.03";
}

View File

@ -0,0 +1,9 @@
age-encryption.org/v1
-> ssh-ed25519 HwR33w 8zOolyGJvZ/2INs4yS7pFci+ktyEjOsGaff7+5HkEh4
HWXI2uYLIfutJ9PrJbwuH02GLNF/bJLVAd1prLbSk6o
-> ssh-ed25519 RyOjvA Fp4D7amm2EPSp5VyN7N99S10U3p1ITe+nhY+UVs64W8
xWfbN92OvHDrAvwYtnJfcwKuGtN68fN82/otWYbDiFs
-> '&&2PA(-grease O @2r[ u
5pJJ/ZfFB46scMhGo7wQY4r5gH2UZxZvt6sCOlyJ4uy+VVj8FZAShrBo
--- NncgnJg/91wjSyXj21jb0SkMuSsN3MciRpeI2pmKjco
ý€œ¤1¡UÂ/HwwŸ¾ÇòÏÏÐ@<40>QþSþX<C3BE>tŸo[Z†c<E280A0>šq\ÿòbWǤՅER¨Š«é .Eð5»F4„IC<49>½3èÈΘ÷º

View File

@ -40,6 +40,18 @@
networking.firewall.allowedTCPPorts = [ 80 443 ];
clerie.system-auto-upgrade = {
allowReboot = true;
autoUpgrade = true;
};
clerie.monitoring = {
enable = true;
id = "391";
pubkey = "Rfu2JLxAk0seAZgt43sOEAF69Z9uQaOjeNgM4jJF0h4=";
};
system.stateVersion = "23.05";
}

View File

@ -0,0 +1,9 @@
age-encryption.org/v1
-> ssh-ed25519 HwR33w JKCBhuwIMcH042SNcp+OQjgvpMogmXH9who0wy9Jh2g
waaOvyKbg8AVEQ8BnLONus0y237GK8do0nOWovYv/Hg
-> ssh-ed25519 7zj2eQ cMRXtuy4Jsl4X/qstN3wxztrEfCh+lz48+jn9cEO614
/LcwitDqSk7yEFqUeJvpWo+6lqTI8UjuBi03JxRTx/A
-> .-grease sMU_}
NOvvGJmEfeBYR6Q
--- ju0+LEUzdv2AW1Zaf1/YBo5+5ZKc+XhYUOt/p/NqYWU
Ä"'oč©®9@1źF&Ż'VÇ︪whĆ$3kj®<E280BA>v¦őę&ŰOŔ$}śN€Wp[ôČeÚM ˙eĉĚCďE@ÖĚüÚSc1

View File

@ -0,0 +1,13 @@
inputs:
with inputs.nixpkgs.lib;
rec {
monitoringIdForHost = host: let
evalResult = builtins.tryEval (attrByPath [ "clerie" "monitoring" "id" ] null host.config);
in
if evalResult.success then evalResult.value else null;
monitoringIdsByHost = hosts: filterAttrs (name: id: id != null) (mapAttrs (name: host: monitoringIdForHost host) hosts);
hostsByMonitoringIds = hosts: mapAttrs' (name: id: nameValuePair id name) (monitoringIdsByHost hosts);
monitoringIds = hosts: attrNames (hostsByMonitoringIds hosts);
}

View File

@ -14,6 +14,7 @@ let
generateColmenaHost
mapToColmenaHosts
buildHosts;
clerie-monitoring-ids = callLibs ./clerie-monitoring-ids.nix;
};
in