288 current 2025-10-11 10:03:00 25.05.20251006.20c4598 6.12.50 *

This commit is contained in:
2025-10-11 10:36:01 -05:00
parent fd553ec4ca
commit 347b4e9f74
5 changed files with 19 additions and 8 deletions

View File

@@ -138,7 +138,9 @@ in
}; };
# add to backups # add to backups
modules.system.backups.paths = lib.mkIf cfg.backup [ cfg.data_dir ]; modules.system.backups.baks = {
${service} = { paths = [ cfg.data_dir ]; };
};
}; };
} }

View File

@@ -97,6 +97,8 @@ in
}; };
# add to backups # add to backups
modules.system.backups.paths = lib.mkIf cfg.backup [ cfg.data_dir ]; modules.system.backups.baks = {
${service} = { paths = [ cfg.data_dir ]; };
};
}; };
} }

View File

@@ -112,6 +112,8 @@ in
}; };
# add to backups # add to backups
modules.system.backups.paths = lib.mkIf cfg.backup [ cfg.data_dir ]; modules.system.backups.baks = {
${service} = { paths = [ cfg.data_dir ]; };
};
}; };
} }

View File

@@ -111,6 +111,8 @@ in
}; };
# add to backups # add to backups
modules.system.backups.paths = lib.mkIf cfg.backup [ cfg.data_dir ]; modules.system.backups.baks = {
${service} = { paths = [ cfg.data_dir ]; };
};
}; };
} }

View File

@@ -10,7 +10,7 @@ in a borg archive to the specified repo
| <3yy> | | <3yy> |
V V V V
modules.system.backups.baks = { modules.system.backups.baks = {
{service} = { paths = [ cfg.data_dir ]; }; ${service} = { paths = [ cfg.data_dir ]; };
}; };
*/ */
@@ -28,6 +28,9 @@ in
default = {}; default = {};
description = "backup jobs, nested attribute sets should be <bak_name> = paths [<list_of_paths>]"; description = "backup jobs, nested attribute sets should be <bak_name> = paths [<list_of_paths>]";
}; };
baks = lib.mkOption {
type = lib.types.list
};
repo = lib.mkOption { repo = lib.mkOption {
type = lib.types.path; type = lib.types.path;
default = "/holocron/borg"; default = "/holocron/borg";