restic: Fix restic-auth script

Since I migrated to sops, the password store structure changed.
This commit is contained in:
Simon Bruder 2021-05-27 14:38:33 +02:00
parent 0f135fc87b
commit ea45b45c60
Signed by: simon
GPG key ID: 8D3C82F9F309F8EC

View file

@ -34,9 +34,9 @@ let
# script to use restic as user without dealing with authentication
authScript = pkgs.writeShellScriptBin "restic-auth" ''
. <(pass nixos/machines/${config.networking.hostName}/restic-s3 | sed 's/^/export /')
. <(pass data/wasabi/restic-nixos | sed 's/^/export /')
${pkgs.restic}/bin/restic \
--password-command="pass nixos/machines/${config.networking.hostName}/restic-password" \
--password-command="pass data/backup/restic-nixos" \
--repo "${repository}" \
$@
'';