This commit is contained in:
parent
5f644d0ccd
commit
a394b9cefd
167 changed files with 2795 additions and 2122 deletions
|
@ -3,11 +3,13 @@
|
|||
pkgs,
|
||||
lib,
|
||||
...
|
||||
}: let
|
||||
}:
|
||||
let
|
||||
user = "u382036-sub1";
|
||||
host = "u382036.your-storagebox.de";
|
||||
port = "23";
|
||||
in {
|
||||
in
|
||||
{
|
||||
age.secrets = {
|
||||
HETZNER_STORAGE_BOX_SISKO_SSH_PASSWORD = {
|
||||
file = ../../secrets/hetzner-storage-box-sisko-ssh-password.age;
|
||||
|
@ -19,10 +21,12 @@ in {
|
|||
};
|
||||
};
|
||||
|
||||
services.openssh.knownHosts."${host}".publicKey = "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIICf9svRenC/PLKIL9nk6K/pxQgoiFC41wTNvoIncOxs";
|
||||
services.openssh.knownHosts."${
|
||||
host
|
||||
}".publicKey = "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIICf9svRenC/PLKIL9nk6K/pxQgoiFC41wTNvoIncOxs";
|
||||
|
||||
services.restic.backups.sisko = {
|
||||
paths = ["/persist"];
|
||||
paths = [ "/persist" ];
|
||||
passwordFile = config.age.secrets.SISKO_RESTIC_PASSWORD.path;
|
||||
extraOptions = [
|
||||
"sftp.command='${lib.getExe pkgs.sshpass} -f ${config.age.secrets.HETZNER_STORAGE_BOX_SISKO_SSH_PASSWORD.path} ssh -p${port} ${user}@${host} -s sftp'"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue