borgbackup: fix some minor issues

This commit is contained in:
Daniel Frank 2019-06-15 10:33:12 +02:00
parent 67af66939c
commit f39f1e58a2
Signed by: tokudan
GPG key ID: 063CCCAD04182D32

View file

@ -1,8 +1,8 @@
{ pkgs, stdenv, ... }:
{ pkgs, ... }:
let
borgPassCommand = pkgs.writeScript "borgPassCommand" ''
#!${stdenv.shell}
#!${pkgs.stdenv.shell}
set -euo pipefail
# Make sure everything but the password ends up on stderr
exec 3>&1 >&2
@ -33,7 +33,7 @@ in
};
encryption = {
mode = "repokey";
passCommand = borgPassCommand;
passCommand = "${borgPassCommand}";
};
compression = "auto,lz4";
startAt = "hourly";