fixes some errors
This commit is contained in:
parent
027d3092dd
commit
90e4691c25
2 changed files with 29 additions and 27 deletions
|
|
@ -2,7 +2,7 @@
|
||||||
let
|
let
|
||||||
commonPackages =
|
commonPackages =
|
||||||
pkgs: with pkgs; [
|
pkgs: with pkgs; [
|
||||||
neofetch
|
fastfetch
|
||||||
zip
|
zip
|
||||||
unzip
|
unzip
|
||||||
ripgrep
|
ripgrep
|
||||||
|
|
|
||||||
|
|
@ -20,33 +20,35 @@
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
# Root SSH for storage box
|
config = {
|
||||||
programs.ssh = {
|
# Root SSH for storage box
|
||||||
extraConfig = ''
|
programs.ssh = {
|
||||||
Host dnsc-storage
|
extraConfig = ''
|
||||||
AddKeysToAgent yes
|
Host dnsc-storage
|
||||||
Hostname u295965.your-storagebox.de
|
AddKeysToAgent yes
|
||||||
User u295965
|
Hostname u295965.your-storagebox.de
|
||||||
IdentityFile /root/.ssh/id_ed25519
|
User u295965
|
||||||
IdentitiesOnly yes
|
IdentityFile /root/.ssh/id_ed25519
|
||||||
Port 23
|
IdentitiesOnly yes
|
||||||
'';
|
Port 23
|
||||||
};
|
'';
|
||||||
|
};
|
||||||
|
|
||||||
services.restic.backups = {
|
services.restic.backups = {
|
||||||
"dnsc-storage" = {
|
"dnsc-storage" = {
|
||||||
initialize = true;
|
initialize = true;
|
||||||
passwordFile = config.age.secrets."restic/password".path;
|
passwordFile = config.age.secrets."restic/password".path;
|
||||||
repository = config.restic.repository;
|
repository = config.restic.repository;
|
||||||
createWrapper = true;
|
createWrapper = true;
|
||||||
paths = config.restic.backupPaths;
|
paths = config.restic.backupPaths;
|
||||||
pruneOpts = [
|
pruneOpts = [
|
||||||
"--keep-last 3"
|
"--keep-last 3"
|
||||||
];
|
];
|
||||||
timerConfig = {
|
timerConfig = {
|
||||||
OnCalendar = "daily";
|
OnCalendar = "daily";
|
||||||
Persistent = true;
|
Persistent = true;
|
||||||
RandomizedDelaySec = "5h";
|
RandomizedDelaySec = "5h";
|
||||||
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue