288 current 2025-10-11 10:03:00 25.05.20251006.20c4598 6.12.50 *
This commit is contained in:
@@ -23,21 +23,21 @@ in
|
|||||||
{
|
{
|
||||||
options.modules.system.backups = {
|
options.modules.system.backups = {
|
||||||
enable = lib.mkEnableOption "enables backups with borg";
|
enable = lib.mkEnableOption "enables backups with borg";
|
||||||
baks = lib.mkOption {
|
|
||||||
type = lib.types.attrsOf (lib.types.attrsOf (lib.types.listOf lib.types.path));
|
|
||||||
default = {};
|
|
||||||
description = "backup jobs, nested attribute sets should be <bak_name> = paths [<list_of_paths>]";
|
|
||||||
};
|
|
||||||
# baks = lib.mkOption {
|
# baks = lib.mkOption {
|
||||||
# type = lib.types.attrsOf (lib.types.submodule {
|
# type = lib.types.attrsOf (lib.types.attrsOf (lib.types.listOf lib.types.path));
|
||||||
# options.paths = lib.mkOption {
|
|
||||||
# type = lib.types.listOf lib.types.path;
|
|
||||||
# description = "Paths to back up for this job.";
|
|
||||||
# };
|
|
||||||
# });
|
|
||||||
# default = {};
|
# default = {};
|
||||||
# description = "Backup jobs (attribute set of name → { paths = [ … ]; })";
|
# description = "backup jobs, nested attribute sets should be <bak_name> = paths [<list_of_paths>]";
|
||||||
# };
|
# };
|
||||||
|
baks = lib.mkOption {
|
||||||
|
type = lib.types.attrsOf (lib.types.submodule {
|
||||||
|
options.paths = lib.mkOption {
|
||||||
|
type = lib.types.listOf lib.types.path;
|
||||||
|
description = "Paths to back up for this service.";
|
||||||
|
};
|
||||||
|
});
|
||||||
|
default = {};
|
||||||
|
description = "Backup jobs, one per service.";
|
||||||
|
};
|
||||||
paths = lib.mkOption {
|
paths = lib.mkOption {
|
||||||
type = lib.types.list;
|
type = lib.types.list;
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user