mirror of
https://github.com/harryssecret/homelab-nix.git
synced 2025-01-18 13:29:32 +01:00
(bug): impossible to connect to remote server
This commit is contained in:
parent
6e87a94b20
commit
83625c3fa0
|
@ -1,4 +1,9 @@
|
|||
{ config, secrets, ... }:
|
||||
{
|
||||
config,
|
||||
secrets,
|
||||
pkgs,
|
||||
...
|
||||
}:
|
||||
{
|
||||
imports = [
|
||||
./backups-repos.nix
|
||||
|
@ -8,6 +13,14 @@
|
|||
sopsFile = "${secrets}/secrets/backup.yaml";
|
||||
};
|
||||
|
||||
sops.secrets.sshBorgOffsiteBackup = {
|
||||
sopsFile = "${secrets}/secrets/backup.yaml";
|
||||
};
|
||||
|
||||
sops.secrets.borgOffsiteBackupHostKeys = {
|
||||
sopsFile = "${secrets}/secrets/backup.yaml";
|
||||
};
|
||||
|
||||
services.borgbackup.jobs = {
|
||||
/*
|
||||
localBackup = {
|
||||
|
@ -71,7 +84,7 @@
|
|||
];
|
||||
exclude_patterns = [ "/home/*/.cache" ];
|
||||
encryption_passcommand = "cat /run/secrets/borgRemoteServerPassword";
|
||||
ssh_command = "ssh -i /home/homelab/.ssh/backup/id_ed25519";
|
||||
ssh_command = "ssh -o GlobalKnownHostsFile=${config.sops.secrets.borgOffsiteBackupHostKeys.path} -i ${config.sops.secrets.sshBorgOffsiteBackup.path}";
|
||||
};
|
||||
};
|
||||
};
|
||||
|
|
Loading…
Reference in a new issue