modules/backup: only enable automatic backups if time set
This commit is contained in:
parent
b63a00b3cc
commit
8612b87197
1 changed files with 1 additions and 1 deletions
|
@ -40,7 +40,7 @@ let
|
|||
inherit paths;
|
||||
inherit (cfg) repo;
|
||||
exclude = map (append paths) (excludes' ++ cfg.extraExcludes);
|
||||
startAt = "*-*-* ${cfg.backupTimes.${config.networking.hostName}}";
|
||||
startAt = if cfg.backupTimes ? "${config.networking.hostName}" then "*-*-* ${cfg.backupTimes.${config.networking.hostName}}" else [ ];
|
||||
};
|
||||
|
||||
cfg = config.modules.backups;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue