reworks dnsc-server

This commit is contained in:
Dennis Schoepf 2026-01-15 19:22:55 +01:00
parent 062c286cd2
commit f6c26e53d2
4 changed files with 90 additions and 90 deletions

View file

@ -0,0 +1,39 @@
{
config,
...
}:
{
# Root SSH
programs.ssh = {
extraConfig = ''
Host dnsc-storage
AddKeysToAgent yes
Hostname u295965.your-storagebox.de
User u295965
IdentityFile /root/.ssh/id_ed25519
IdentitiesOnly yes
Port 23
'';
};
services.restic.backups = {
"dnsc-storage" = {
initialize = true;
passwordFile = config.age.secrets."restic/password".path;
repository = "sftp:dnsc-storage:restic/dnsc-server";
paths = [
"/home/dennis/notes"
"/main/share"
];
pruneOpts = [
"--keep-last 3"
];
timerConfig = {
onCalendar = "daily";
Persistent = true;
RandomizedDelaySec = "5h";
};
};
};
}