diff --git a/modules/system/backups.nix b/modules/system/backups.nix index f69ebf6..eb07ec5 100644 --- a/modules/system/backups.nix +++ b/modules/system/backups.nix @@ -23,10 +23,20 @@ in { options.modules.system.backups = { enable = lib.mkEnableOption "enables backups with borg"; - baks = lib.mkOption { +# baks = lib.mkOption { # type = lib.types.attrsOf ( lib.types.attrsOf (lib.types.listOf lib.types.null) ); +# default = {}; +# description = "backup jobs, nested attribute sets should be = 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 job."; + }; + }); default = {}; - description = "backup jobs, nested attribute sets should be = paths []"; + description = "Backup jobs (attribute set of name → { paths = [ … ]; })"; }; paths = lib.mkOption { type = lib.types.list;