From 2478fb59e7a0c5196d15edd4a442c10c9b262764 Mon Sep 17 00:00:00 2001 From: Yan Lin Date: Thu, 4 Dec 2025 15:36:47 +0100 Subject: [PATCH] minor fix --- modules/borg/client.nix | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/modules/borg/client.nix b/modules/borg/client.nix index 731ac92..546894c 100644 --- a/modules/borg/client.nix +++ b/modules/borg/client.nix @@ -227,9 +227,10 @@ in fi # Copy necessary SSH keys - if [ -d /home/yanlin/.ssh/keys ]; then - cp -r /home/yanlin/.ssh/keys /root/.ssh/ - chmod -R 600 /root/.ssh/keys + if [ -d /home/yanlin/Credentials/ssh_keys ]; then + mkdir -p /root/Credentials + cp -r /home/yanlin/Credentials/ssh_keys /root/Credentials/ + chmod -R 600 /root/Credentials/ssh_keys fi # Copy known_hosts to avoid host key verification issues