From 1b9e49bbe7bfa89cdf44506304be38a91b4fa5a1 Mon Sep 17 00:00:00 2001 From: Gregor Kleen Date: Thu, 17 Feb 2022 17:25:47 +0100 Subject: vidhar: ... --- hosts/vidhar/borg/default.nix | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) (limited to 'hosts') diff --git a/hosts/vidhar/borg/default.nix b/hosts/vidhar/borg/default.nix index 352ce887..7250c4c7 100644 --- a/hosts/vidhar/borg/default.nix +++ b/hosts/vidhar/borg/default.nix @@ -11,7 +11,7 @@ let Host yggdrasil.borgbase HostName nx69hpl8.repo.borgbase.com User nx69hpl8 - IdentityFile /run/credentials/${serviceName}.service/ssh-identity + IdentityFile ${config.sops.secrets."append.borgbase".path} IdentitiesOnly yes BatchMode yes @@ -33,13 +33,9 @@ let "BORG_CACHE_DIR=/var/lib/borg/cache" "BORG_SECURITY_DIR=/var/lib/borg/security" "BORG_KEYS_DIR=/var/lib/borg/keys" - "BORG_KEY_FILE=/run/credentials/${serviceName}.service/keyfile" + "BORG_KEY_FILE=${config.sops.secrets."yggdrasil.borgkey".path}" "BORG_UNKNOWN_UNENCRYPTED_REPO_ACCESS_IS_OK=yes" ]; - LoadCredential = [ - "ssh-identity:${config.sops.secrets."append.borgbase".path}" - "keyfile:${config.sops.secrets."yggdrasil.borgkey".path}" - ]; }; }; -- cgit v1.2.3