From c3b47e173a8cbb29c934491a2dd17ec3debec129 Mon Sep 17 00:00:00 2001 From: "quentin@aristote.fr" Date: Sat, 24 Jan 2026 23:36:35 +0100 Subject: hephaistos -> ${hostname} --- config/backups.nix | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) (limited to 'config/backups.nix') 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 ''; -- cgit v1.2.3