From 2f16220104132e036a59b8d73b5cda803a6e24bc Mon Sep 17 00:00:00 2001 From: Ingolf Wagner Date: Thu, 4 Apr 2024 22:24:48 +0200 Subject: [PATCH] backup terranix matrix --- nixos/components/network/tinc/private.nix | 2 +- nixos/machines/chungus/rbackup.nix | 11 +++++------ nixos/machines/orbi/configuration.nix | 3 +++ 3 files changed, 9 insertions(+), 7 deletions(-) diff --git a/nixos/components/network/tinc/private.nix b/nixos/components/network/tinc/private.nix index f76c3f0..a751ed9 100644 --- a/nixos/components/network/tinc/private.nix +++ b/nixos/components/network/tinc/private.nix @@ -130,7 +130,7 @@ in hostNames = [ "orbi.${network}" hosts.orbi - "robi" + "orbi" "95.216.66.212" ]; publicKey = "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAICTqV5ch4BokqDniDgCquRwfTz6aXXMTdZovIvqShfLV"; diff --git a/nixos/machines/chungus/rbackup.nix b/nixos/machines/chungus/rbackup.nix index a25d9bf..da2aaca 100644 --- a/nixos/machines/chungus/rbackup.nix +++ b/nixos/machines/chungus/rbackup.nix @@ -23,12 +23,11 @@ src = "root@robi:/var/lib/bitwarden_rs/"; dst = "/mirror/bitwarden_rs"; }; - #torrent = { - # sshKeyPath = config.sops.secrets.rsync_private_key.path; - # src = "root@robi:/media/torrent/downloads/"; - # dst = "/media/torrent"; - # startAt = "00/5:00"; # every 5 hours - #}; + matrix-terranix = { + sshKeyPath = config.sops.secrets.rsync_private_key.path; + src = "root@orbi:/var/lib/nixos-containers/matrix-terranix"; + dst = "/mirror/matrix-terranix"; + }; radarr = { sshKeyPath = config.sops.secrets.rsync_private_key.path; diff --git a/nixos/machines/orbi/configuration.nix b/nixos/machines/orbi/configuration.nix index 15ee32d..651ccbd 100644 --- a/nixos/machines/orbi/configuration.nix +++ b/nixos/machines/orbi/configuration.nix @@ -64,4 +64,7 @@ sops.defaultSopsFile = ../../secrets/orbi.yaml; + # chungus rsync + users.users.root.openssh.authorizedKeys.keys = [ "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIJkqVvuJSvRMO5pG2CHNNBxjB7HlJudK4TQs3BhbOWOD" ]; + }