Compare commits

...

2 commits

Author SHA1 Message Date
e46677a3f6 added backup pruning to restic.
Only done on the restic host itself, as no remote can do it due to
--append-only.
2025-03-25 17:41:01 +01:00
838f85f25d moved dua to minimal-terminal. 2025-03-25 16:41:31 +01:00
3 changed files with 10 additions and 3 deletions

View file

@ -42,14 +42,21 @@ in {
];
services.restic.backups = lib.mkIf (inputs ? nix-secrets) {
remote = {
repositoryFile = config.sops.secrets.restic-url.path;
local = {
repositoryFile = "/backup/restic/";
passwordFile = config.sops.secrets.restic-password.path;
initialize = true;
paths = [
"/storage/syncthing"
"/storage/factorio"
];
pruneOpts=[
"--keep-within 14d"
"--keep-daily 14"
"--keep-weekly 8"
"--keep-monthly 12"
"--keep-yearly 10"
];
timerConfig = {
OnCalendar = "daily";
Persistent = true;

View file

@ -21,6 +21,7 @@
home.packages = with pkgs; [
sshfs
just
dua
fd
sd
curl

View file

@ -21,7 +21,6 @@
home.packages = with pkgs; [
tre-command
hyperfine
dua
fclones
libqalculate
];