285 current 2025-10-11 08:57:30 25.05.20251006.20c4598 6.12.50 *

This commit is contained in:
2025-10-11 09:31:40 -05:00
parent f50139dfca
commit 12936f35e2

View File

@@ -5,6 +5,7 @@ let
borg = "${pkgs.borgbackup}/bin/borg"; borg = "${pkgs.borgbackup}/bin/borg";
backup_paths = lib.unique config.modules.system.backups.paths; backup_paths = lib.unique config.modules.system.backups.paths;
passwd_file = config.sops.secrets."borg_passwd".path; passwd_file = config.sops.secrets."borg_passwd".path;
jobs = cfg.jobs
in in
{ {
options.modules.system.backups = { options.modules.system.backups = {
@@ -20,7 +21,7 @@ in
lib.types.listOf lib.types.path # the paths lib.types.listOf lib.types.path # the paths
) )
); );
default = null; default = {};
description = "Borg backup jobs; each job has a list of paths."; description = "Borg backup jobs; each job has a list of paths.";
}; };
repo = lib.mkOption { repo = lib.mkOption {
@@ -81,7 +82,7 @@ in
--keep-weekly=52 \ --keep-weekly=52 \
--keep-monthly=-1 --keep-monthly=-1
'' ''
) cfg.jobs)} ) jobs)}
echo "finshed backup at \"$BORG_REPO::$archive\" echo "finshed backup at \"$BORG_REPO::$archive\"
''; '';