restic: Fix restic-auth script

Since I migrated to sops, the password store structure changed.
pull/52/head
Simon Bruder 2021-05-27 14:38:33 +02:00
parent 0f135fc87b
commit ea45b45c60
Signed by: simon
GPG Key ID: 8D3C82F9F309F8EC
1 changed files with 2 additions and 2 deletions

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}" \
$@
'';