modules/backup: only enable automatic backups if time set

This commit is contained in:
Infinidoge 2024-06-07 17:28:23 -04:00
parent b63a00b3cc
commit 8612b87197
No known key found for this signature in database

View file

@ -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;