restic: Fix restic-auth script
Since I migrated to sops, the password store structure changed.
This commit is contained in:
parent
0f135fc87b
commit
ea45b45c60
|
@ -34,9 +34,9 @@ let
|
||||||
|
|
||||||
# script to use restic as user without dealing with authentication
|
# script to use restic as user without dealing with authentication
|
||||||
authScript = pkgs.writeShellScriptBin "restic-auth" ''
|
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 \
|
${pkgs.restic}/bin/restic \
|
||||||
--password-command="pass nixos/machines/${config.networking.hostName}/restic-password" \
|
--password-command="pass data/backup/restic-nixos" \
|
||||||
--repo "${repository}" \
|
--repo "${repository}" \
|
||||||
$@
|
$@
|
||||||
'';
|
'';
|
||||||
|
|
Loading…
Reference in a new issue