Enable healthchecks of restic-backups by default

This commit is contained in:
SebastianStork 2025-06-07 00:34:38 +02:00
parent 41cd9f56f1
commit cdeabbcc84
6 changed files with 4 additions and 15 deletions

View file

@ -16,16 +16,15 @@ in
options.custom.services.resticBackups = lib.mkOption {
type = lib.types.attrsOf (
lib.types.submodule {
options.healthchecks.enable = lib.mkEnableOption "";
options.healthchecks.enable = lib.mkEnableOption "" // {
default = true;
};
}
);
};
config = lib.mkIf (resticBackups != { }) {
sops.secrets."healthchecks-ping-key" = {
mode = "440";
group = config.users.groups.backup.name;
};
sops.secrets."healthchecks-ping-key" = { };
systemd.services = lib.mkMerge [
{