Python Inventory classes: Auto-update

This commit is contained in:
Johannes Kirschbauer
2024-07-24 10:37:19 +02:00
parent 00bad3d614
commit c8407e2052
4 changed files with 4 additions and 3 deletions

View File

@@ -109,7 +109,7 @@ in
options.clan.borgbackup.exclude = lib.mkOption {
type = lib.types.listOf lib.types.str;
example = [ "*.pyc" ];
default = [];
default = [ ];
description = ''
Directories/Files to exclude from the backup.
Use * as a wildcard.

View File

@@ -39,6 +39,7 @@ class BorgbackupConfigDestination:
@dataclass
class BorgbackupConfig:
destinations: dict[str, BorgbackupConfigDestination] = field(default_factory = dict)
exclude: list[str] = field(default_factory = list)
@dataclass