diff --git a/modules/system/backups.nix b/modules/system/backups.nix index 815be8b..e31ae83 100644 --- a/modules/system/backups.nix +++ b/modules/system/backups.nix @@ -51,7 +51,7 @@ in # the actual script borg is using ExecStart = pkgs.writeShellScript "borg-backup" '' set -euo pipefail - export BORG_PASSPHRASE="$(cat ${passwd_file})" + export BORG_PASSPHRASE="$(cat ${cfg.passwd_file})" export BORG_REPO="${cfg.repo}" timestamp="$(date +'%Y-%m-%d_%H:%M:%S')"