fix(backups): scope restic password per host

This commit is contained in:
hektor committed 2026-11-01 18:17:20 +01:00
1 parent 0c992880b7
commit f55d5a8149
1 file changed
+2 -2
+2 -2
View File
@@ -14,7 +14,7 @@ in
passwordFile = lib.mkOption {
type = lib.types.str;
default = config.sops.secrets."restic/password".path;
default = config.sops.secrets."${host}-restic/password".path;
};
paths = lib.mkOption {
@@ -30,7 +30,7 @@ in
config = lib.mkIf cfg.enable {
secrets = {
restic = [ "password" ];
"${host}-restic" = [ "password" ];
backblaze-b2 = [
"bucket-name"
"account-id"