From f55d5a8149822e727dcac0fdc5cdbaac7ee4cf42 Mon Sep 17 00:00:00 2001 From: hektor Date: Thu, 29 Oct 2026 00:07:40 +0100 Subject: [PATCH] fix(backups): scope restic password per host --- modules/backups/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/backups/default.nix b/modules/backups/default.nix index 5993270..b695211 100644 --- a/modules/backups/default.nix +++ b/modules/backups/default.nix @@ -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"