Compare commits
2 commits
56f84fcb36
...
0589894ec6
Author | SHA1 | Date | |
---|---|---|---|
Antoine Martin | 0589894ec6 | ||
Antoine Martin | 1d0fd8d461 |
|
@ -50,6 +50,10 @@ in
|
||||||
passwordFile = config.age.secrets."restic-backup/zephyrus-password".path;
|
passwordFile = config.age.secrets."restic-backup/zephyrus-password".path;
|
||||||
environmentFile = config.age.secrets."restic-backup/zephyrus-credentials".path;
|
environmentFile = config.age.secrets."restic-backup/zephyrus-credentials".path;
|
||||||
|
|
||||||
|
timerConfig = {
|
||||||
|
OnCalendar = "*-*-* 13:00:00"; # laptop only gets used during the day
|
||||||
|
};
|
||||||
|
|
||||||
paths = [
|
paths = [
|
||||||
"/home/alarsyo"
|
"/home/alarsyo"
|
||||||
];
|
];
|
||||||
|
|
|
@ -72,6 +72,13 @@ in {
|
||||||
type = types.str;
|
type = types.str;
|
||||||
default = "/root/restic/creds";
|
default = "/root/restic/creds";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
timerConfig = mkOption {
|
||||||
|
type = types.attrsOf types.str;
|
||||||
|
default = {
|
||||||
|
OnCalendar = "daily";
|
||||||
|
};
|
||||||
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
config = mkIf cfg.enable {
|
config = mkIf cfg.enable {
|
||||||
|
@ -89,9 +96,7 @@ in {
|
||||||
extraBackupArgs = [ "--verbose=2" ]
|
extraBackupArgs = [ "--verbose=2" ]
|
||||||
++ optional (builtins.length cfg.exclude != 0) excludeArg;
|
++ optional (builtins.length cfg.exclude != 0) excludeArg;
|
||||||
|
|
||||||
timerConfig = {
|
timerConfig = cfg.timerConfig;
|
||||||
OnCalendar = "daily";
|
|
||||||
};
|
|
||||||
|
|
||||||
pruneOpts = makePruneOpts cfg.prune;
|
pruneOpts = makePruneOpts cfg.prune;
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in a new issue