mirror of
https://github.com/SebastianStork/nixos-config.git
synced 2026-01-21 15:11:34 +01:00
Enable healthchecks of restic-backups by default
This commit is contained in:
parent
41cd9f56f1
commit
cdeabbcc84
6 changed files with 4 additions and 15 deletions
|
|
@ -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 [
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue