summaryrefslogtreecommitdiff
path: root/hosts/vidhar
diff options
context:
space:
mode:
authorGregor Kleen <gkleen@yggdrasil.li>2022-02-17 12:52:28 +0100
committerGregor Kleen <gkleen@yggdrasil.li>2022-02-17 12:52:28 +0100
commit77d3cd63154792b3b80e5bd58e504856dcb8dfef (patch)
tree1b40b68ac7974e062fa21f1662b524d4254d1349 /hosts/vidhar
parent8a940006df1161c5b3ed55ff2f46fea527412f16 (diff)
downloadnixos-77d3cd63154792b3b80e5bd58e504856dcb8dfef.tar
nixos-77d3cd63154792b3b80e5bd58e504856dcb8dfef.tar.gz
nixos-77d3cd63154792b3b80e5bd58e504856dcb8dfef.tar.bz2
nixos-77d3cd63154792b3b80e5bd58e504856dcb8dfef.tar.xz
nixos-77d3cd63154792b3b80e5bd58e504856dcb8dfef.zip
vidhar: ...
Diffstat (limited to 'hosts/vidhar')
-rw-r--r--hosts/vidhar/borg/default.nix4
1 files changed, 3 insertions, 1 deletions
diff --git a/hosts/vidhar/borg/default.nix b/hosts/vidhar/borg/default.nix
index d85ab751..b3a3530c 100644
--- a/hosts/vidhar/borg/default.nix
+++ b/hosts/vidhar/borg/default.nix
@@ -6,6 +6,8 @@ let
6 copyService = { repo, repoEscaped }: let 6 copyService = { repo, repoEscaped }: let
7 serviceName = "copy-borg@${repoEscaped}"; 7 serviceName = "copy-borg@${repoEscaped}";
8 sshConfig = pkgs.writeText "config" '' 8 sshConfig = pkgs.writeText "config" ''
9 Include /etc/ssh/ssh_config
10
9 Host yggdrasil.borgbase 11 Host yggdrasil.borgbase
10 HostName nx69hpl8.repo.borgbase.com 12 HostName nx69hpl8.repo.borgbase.com
11 User nx69hpl8 13 User nx69hpl8
@@ -26,7 +28,7 @@ let
26 Group = "borg"; 28 Group = "borg";
27 StateDirectory = "borg"; 29 StateDirectory = "borg";
28 Environment = [ 30 Environment = [
29 "BORG_RSH=\"${pkgs.openssh}/bin/ssh -F /etc/ssh/ssh_config -F ${sshConfig}\"" 31 "BORG_RSH=\"${pkgs.openssh}/bin/ssh -F ${sshConfig}\""
30 "BORG_BASE_DIR=/var/lib/borg" 32 "BORG_BASE_DIR=/var/lib/borg"
31 "BORG_CONFIG_DIR=/var/lib/borg/config" 33 "BORG_CONFIG_DIR=/var/lib/borg/config"
32 "BORG_CACHE_DIR=/var/lib/borg/cache" 34 "BORG_CACHE_DIR=/var/lib/borg/cache"