fix(backups): scope restic password per host
This commit is contained in:
1 parent
0c992880b7
commit
f55d5a8149
1 file changed
+2
-2
@@ -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"
|
||||
|
||||
Reference in new issue
Block a user