ADD ssh config for Hetzner storage boxes
CHANGE backup config. Comment rest server, add hetzner storage box for repository
This commit is contained in:
parent
e36966c7a7
commit
249c42ff8d
|
@ -1,16 +1,20 @@
|
||||||
{config, pkgs, ...}:
|
{config, pkgs, ...}:
|
||||||
{
|
{
|
||||||
|
environment.systemPackages = with pkgs; [
|
||||||
|
restic
|
||||||
|
];
|
||||||
services.restic.backups = {
|
services.restic.backups = {
|
||||||
localbackup = {
|
remotebackup = {
|
||||||
initialize = true;
|
initialize = true;
|
||||||
passwordFile = "/run/restic_pass";
|
passwordFile = "/run/restic_pass";
|
||||||
paths = [ "/var/lib/nextcloud/data/" "/var/backup/postgresql" ];
|
paths = [ "/var/lib/nextcloud/data/" "/var/backup/postgresql" ];
|
||||||
repository = "rest:https://back.atlanticaweb.fr/Nextcloud";
|
#repository = "rest:https://back.atlanticaweb.fr/Nextcloud";
|
||||||
timerConfig = {
|
repository = "sftp:u329746@u329746.your-storagebox.de:/home/Nextcloud";
|
||||||
OnCalendar = "02:05";
|
timerConfig = {
|
||||||
RandomizedDelaySec = "5h";
|
OnCalendar = "02:05";
|
||||||
};
|
RandomizedDelaySec = "5h";
|
||||||
};
|
};
|
||||||
|
};
|
||||||
};
|
};
|
||||||
services.postgresqlBackup = {
|
services.postgresqlBackup = {
|
||||||
enable = true;
|
enable = true;
|
||||||
|
|
|
@ -10,6 +10,7 @@
|
||||||
../modules/transmission.nix
|
../modules/transmission.nix
|
||||||
../modules/prometheus-node.nix
|
../modules/prometheus-node.nix
|
||||||
../docker/appsmith.nix
|
../docker/appsmith.nix
|
||||||
|
../docker/baserow.nix
|
||||||
./agenix.nix
|
./agenix.nix
|
||||||
# <agenix/modules/age.nix>
|
# <agenix/modules/age.nix>
|
||||||
];
|
];
|
||||||
|
@ -23,6 +24,7 @@
|
||||||
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIKUA1RW6JwZasspAp8qmFRFnlV5WXjhLfStAAkM+KYLv lucazeau.alexandre@gmail.com"
|
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIKUA1RW6JwZasspAp8qmFRFnlV5WXjhLfStAAkM+KYLv lucazeau.alexandre@gmail.com"
|
||||||
];
|
];
|
||||||
|
|
||||||
|
programs.ssh.extraConfig = "Host u329746.your-storagebox.de\n Hostname u329746.your-storagebox.de\n Port 23\n user u329746\n IdentityFile /home/alexandre/.ssh/id_ed25519-perso";
|
||||||
networking.firewall.allowedTCPPorts = [ 80 443 22 9002 4533 5050];
|
networking.firewall.allowedTCPPorts = [ 80 443 22 9002 4533 5050];
|
||||||
services.qemuGuest.enable = true;
|
services.qemuGuest.enable = true;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue