Compare commits

...

1 Commits

Author SHA1 Message Date
John Lancaster
1d3847ec12 adjusted timings 2026-03-17 13:26:52 -05:00
2 changed files with 12 additions and 2 deletions

View File

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

View File

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