From 85ebb909975f768d6498acf32f5f04b90e3672bf Mon Sep 17 00:00:00 2001 From: Ingolf Wagner Date: Thu, 6 Jun 2024 01:55:45 +0200 Subject: [PATCH] rbackup works fine now --- nixos/machines/chungus/sync-rbackup.nix | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/nixos/machines/chungus/sync-rbackup.nix b/nixos/machines/chungus/sync-rbackup.nix index 2403086..63f81a9 100644 --- a/nixos/machines/chungus/sync-rbackup.nix +++ b/nixos/machines/chungus/sync-rbackup.nix @@ -1,4 +1,7 @@ { config, factsGenerator, ... }: +let + tld = config.clan.static-hosts.topLevelDomain; +in { clanCore.facts.services.rbackup = factsGenerator.ssh { name = "rbackup"; }; @@ -6,28 +9,28 @@ rbackup.plans = { git = { sshKeyPath = config.clanCore.facts.services.rbackup.secret."ssh.rbackup.id_ed25519".path; - src = "root@orbi:/var/lib/forgejo/"; + src = "root@orbi.${tld}:/var/lib/forgejo/"; dst = "/mirror/git"; }; taskwarrior = { sshKeyPath = config.clanCore.facts.services.rbackup.secret."ssh.rbackup.id_ed25519".path; - src = "root@orbi:/var/lib/taskserver/"; + src = "root@orbi.${tld}:/var/lib/taskserver/"; dst = "/mirror/taskwarrior"; }; vaultwarden = { sshKeyPath = config.clanCore.facts.services.rbackup.secret."ssh.rbackup.id_ed25519".path; - src = "root@orbi:/var/lib/bitwarden_rs/"; + src = "root@orbi.${tld}:/var/lib/bitwarden_rs/"; dst = "/mirror/vaultwarden"; }; radarr = { sshKeyPath = config.clanCore.facts.services.rbackup.secret."ssh.rbackup.id_ed25519".path; - src = "root@orbi:/media/arr/radarr"; + src = "root@orbi.${tld}:/media/arr/radarr"; dst = "/media/arr/radarr"; delete = false; }; sonarr = { sshKeyPath = config.clanCore.facts.services.rbackup.secret."ssh.rbackup.id_ed25519".path; - src = "root@orbi:/media/arr/sonarr"; + src = "root@orbi.${tld}:/media/arr/sonarr"; dst = "/media/arr/sonarr"; delete = false; };