From 5108a624f83d3061e2b9729468447cfd5a76141b Mon Sep 17 00:00:00 2001 From: Simon Bruder Date: Mon, 24 Aug 2020 09:27:16 +0200 Subject: [PATCH] Use the same restic password for all machines MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Since they use the same repository (for deduplication), everything else doesn’t make sense. --- modules/restic.nix | 2 +- .../nunotaba/secrets => secrets}/restic_password | Bin 2 files changed, 1 insertion(+), 1 deletion(-) rename {machines/nunotaba/secrets => secrets}/restic_password (100%) diff --git a/modules/restic.nix b/modules/restic.nix index 7e0cbee..26f6176 100644 --- a/modules/restic.nix +++ b/modules/restic.nix @@ -43,7 +43,7 @@ let in { services.restic.backups."${config.networking.hostName}-system" = { - passwordFile = toString (../machines/. + "/${config.networking.hostName}" + /secrets/restic_password); + passwordFile = toString (../secrets/restic_password); s3CredentialsFile = toString ../secrets/s3_credentials; repository = "s3:https://s3.eu-central-1.wasabisys.com/sbruder-restic"; paths = lib.mkDefault ( diff --git a/machines/nunotaba/secrets/restic_password b/secrets/restic_password similarity index 100% rename from machines/nunotaba/secrets/restic_password rename to secrets/restic_password