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 {
|
passwordFile = lib.mkOption {
|
||||||
type = lib.types.str;
|
type = lib.types.str;
|
||||||
default = config.sops.secrets."restic/password".path;
|
default = config.sops.secrets."${host}-restic/password".path;
|
||||||
};
|
};
|
||||||
|
|
||||||
paths = lib.mkOption {
|
paths = lib.mkOption {
|
||||||
@@ -30,7 +30,7 @@ in
|
|||||||
|
|
||||||
config = lib.mkIf cfg.enable {
|
config = lib.mkIf cfg.enable {
|
||||||
secrets = {
|
secrets = {
|
||||||
restic = [ "password" ];
|
"${host}-restic" = [ "password" ];
|
||||||
backblaze-b2 = [
|
backblaze-b2 = [
|
||||||
"bucket-name"
|
"bucket-name"
|
||||||
"account-id"
|
"account-id"
|
||||||
|
|||||||
Reference in new issue
Block a user