diff options
Diffstat (limited to 'config/backups.nix')
| -rw-r--r-- | config/backups.nix | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/config/backups.nix b/config/backups.nix index b25f18d..38b2302 100644 --- a/config/backups.nix +++ b/config/backups.nix @@ -7,16 +7,21 @@ # support sftp and the NAS doesn't support non-admin SSH. When Borg v2 is out I # can switch. -{ lib, pkgs, ... }: +{ + config, + lib, + pkgs, + ... +}: let host = "ds218.aristote.mesh"; - path = "/hephaistos"; + path = "/${config.networking.hostName}"; sshpass = "${pkgs.sshpass}/bin/sshpass -f /etc/restic/sftp.key"; in { programs.ssh.extraConfig = '' Host ${host} - User hephaistos + User ${config.networking.hostName} ServerAliveInterval 60 ServerAliveCountMax 240 ''; |
