adjusted timings

This commit is contained in:
John Lancaster
2026-03-17 13:26:52 -05:00
parent f3b503fc9e
commit 1d3847ec12
2 changed files with 12 additions and 2 deletions

View File

@@ -83,6 +83,7 @@ in
};
restic = {
passwordFile = resticPasswordFile;
OnCalendar = "*:0/15";
paths = [ "${config.xdg.userDirs.documents}" "/conf" ];
exclude = [
"/home/*/Pictures"

View File

@@ -33,6 +33,15 @@
type = lib.types.listOf lib.types.str;
default = [ ];
};
OnCalendar = lib.mkOption {
description = "";
type = lib.types.str;
};
RandomizedDelaySec = lib.mkOption {
description = "";
type = lib.types.str;
default = "1m";
};
};
config = let
@@ -61,9 +70,9 @@
passwordFile = cfg.passwordFile;
paths = cfg.paths;
timerConfig = {
OnCalendar = "00:05";
OnCalendar = cfg.OnCalendar;
RandomizedDelaySec = cfg.RandomizedDelaySec;
Persistent = true;
RandomizedDelaySec = "5h";
};
runCheck = true;
pruneOpts = [