diff --git a/modules/system/backups.nix b/modules/system/backups.nix index 64d41c5..2b46ff2 100644 --- a/modules/system/backups.nix +++ b/modules/system/backups.nix @@ -23,20 +23,10 @@ in { options.modules.system.backups = { 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 = 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."; - }; - }); + type = lib.types.attrsOf (lib.types.attrsOf (lib.types.listOf lib.types.path)); default = {}; - description = "Backup jobs, one per service."; + description = "backup jobs, nested attribute sets should be = paths []"; }; paths = lib.mkOption { type = lib.types.list; @@ -99,7 +89,7 @@ in --keep-weekly=52 \ --keep-monthly=-1 '' - ) cfg.jobs)} + ) cfg.baks)} echo "backup run complete at \"$BORG_REPO::$archive\"" ''; };