From b39c8603792e2fe7b245e2e83cbf3a3c1d756e5c Mon Sep 17 00:00:00 2001 From: lassulus Date: Mon, 12 Feb 2024 12:59:32 +0100 Subject: [PATCH] fix borgbackup check we need to switch to the classical test environment again, because borg was complaining otherwise --- checks/borgbackup/default.nix | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/checks/borgbackup/default.nix b/checks/borgbackup/default.nix index 9833111f3..b366e67ea 100644 --- a/checks/borgbackup/default.nix +++ b/checks/borgbackup/default.nix @@ -1,4 +1,4 @@ -(import ../lib/container-test.nix) ({ ... }: { +(import ../lib/test-base.nix) ({ ... }: { name = "borgbackup"; nodes.machine = { self, ... }: { @@ -18,11 +18,20 @@ clanCore.clanDir = ./.; clanCore.state.testState.folders = [ "/etc/state" ]; environment.etc.state.text = "hello world"; + systemd.tmpfiles.settings = { + "ssh-key"."/root/.ssh/id_ed25519" = { + C.argument = "${../lib/ssh/privkey}"; + z = { + mode = "0400"; + user = "root"; + }; + }; + }; clan.borgbackup = { enable = true; destinations.test = { repo = "borg@localhost:."; - rsh = "ssh -i ${../lib/ssh/privkey} -o StrictHostKeyChecking=no"; + rsh = "ssh -i /root/.ssh/id_ed25519 -o StrictHostKeyChecking=no"; }; }; }