Python Inventory classes: Auto-update

This commit is contained in:
Johannes Kirschbauer
2024-07-24 10:37:19 +02:00
parent afffbec98b
commit a8886e9e2f
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

@@ -10,7 +10,7 @@
config.clan.core.facts.services.root-password.secret.password-hash.path;
sops.secrets = lib.mkIf (config.clan.core.facts.secretStore == "sops") {
"${config.clan.core.machineName}-password-hash".neededForUsers = true;
"${config.clan.core.machineName}-password-hash".neededForUsers = true;
};
clan.core.facts.services.root-password = {

View File

@@ -25,7 +25,7 @@
config.clan.core.facts.services.user-password.secret.user-password-hash.path;
sops.secrets = lib.mkIf (config.clan.core.facts.secretStore == "sops") {
"${config.clan.core.machineName}-user-password-hash".neededForUsers = true;
"${config.clan.core.machineName}-user-password-hash".neededForUsers = true;
};
clan.core.facts.services.user-password = {

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