adjusted timings
This commit is contained in:
@@ -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"
|
||||||
|
|||||||
@@ -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 = [
|
||||||
|
|||||||
Reference in New Issue
Block a user