From 4c915f1d1abf0f33c98c3b437004c699f9d52a03 Mon Sep 17 00:00:00 2001 From: Yoan Tournade Date: Fri, 2 Sep 2022 15:58:53 +0200 Subject: [PATCH] Add BORG_RSH entry under an environment option --- nixos/modules/services/backup/borgbackup.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nixos/modules/services/backup/borgbackup.xml b/nixos/modules/services/backup/borgbackup.xml index 8f623c936568..f38064f86775 100644 --- a/nixos/modules/services/backup/borgbackup.xml +++ b/nixos/modules/services/backup/borgbackup.xml @@ -179,7 +179,7 @@ sudo borg init --encryption=repokey-blake2 \ mode = "repokey-blake2"; passCommand = "cat /run/keys/borgbackup_passphrase"; }; - BORG_RSH = "ssh -i /run/keys/id_ed25519_borgbase"; + environment = { BORG_RSH = "ssh -i /run/keys/id_ed25519_borgbase"; }; compression = "auto,lzma"; startAt = "daily"; };