1

System/Nixinator: Disable restic backup service (broken)

This commit is contained in:
2026-03-13 00:55:35 +01:00
parent b71264b864
commit d16b645078

View File

@ -293,59 +293,60 @@
# TODO: The repository gets corrupted all the time, maybe because the service runs before the repository is mounted? # TODO: The repository gets corrupted all the time, maybe because the service runs before the repository is mounted?
# - Was this caused by the NFS "soft" option? # - Was this caused by the NFS "soft" option?
# - Might this be caused by the restic service being interrupted by shutdown/rebooting? # - Might this be caused by the restic service being interrupted by shutdown/rebooting?
restic.backups."synology" = { #
# user = "${username}"; # Keep default (root), so restic can read everything # restic.backups."synology" = {
# # user = "${username}"; # Keep default (root), so restic can read everything
repository = "/home/${username}/Restic"; #
initialize = true; # repository = "/home/${username}/Restic";
passwordFile = config.sops.secrets.restic-repo-key.path; # initialize = true;
createWrapper = true; # passwordFile = config.sops.secrets.restic-repo-key.path;
# createWrapper = true;
timerConfig = { #
OnCalendar = "daily"; # timerConfig = {
Persistent = true; # OnCalendar = "daily";
RandomizedDelaySec = "5h"; # Persistent = true;
}; # RandomizedDelaySec = "5h";
# };
runCheck = true; #
checkOpts = [ # runCheck = true;
"--with-cache" # checkOpts = [
]; # "--with-cache"
# ];
pruneOpts = [ #
"--keep-daily 3" # pruneOpts = [
"--keep-weekly 2" # "--keep-daily 3"
# "--keep-monthly 0" # "--keep-weekly 2"
# "--keep-yearly 0" # # "--keep-monthly 0"
# # "--keep-yearly 0"
"--prune" # Automatically remove dangling files not referenced by any snapshot #
"--repack-uncompressed" # "--prune" # Automatically remove dangling files not referenced by any snapshot
]; # "--repack-uncompressed"
# ];
paths = ["/persist"]; #
exclude = [ # paths = ["/persist"];
# The backup is just supposed to allow a system restore # exclude = [
"/persist/old_homes" # # The backup is just supposed to allow a system restore
"/persist/old_roots" # "/persist/old_homes"
# "/persist/old_roots"
# Those are synced by nextcloud, no need to backup them 50 times #
"/persist/home/${username}/Documents" # # Those are synced by nextcloud, no need to backup them 50 times
"/persist/home/${username}/NixFlake" # "/persist/home/${username}/Documents"
"/persist/home/${username}/Notes" # "/persist/home/${username}/NixFlake"
"/persist/home/${username}/Projects" # "/persist/home/${username}/Notes"
"/persist/home/${username}/Public" # "/persist/home/${username}/Projects"
# "/persist/home/${username}/Public"
# Some more caches #
".cache" # # Some more caches
"cache2" # firefox # ".cache"
"Cache" # "cache2" # firefox
]; # "Cache"
extraBackupArgs = [ # ];
"--exclude-caches" # Excludes marked cache directories # extraBackupArgs = [
"--one-file-system" # Only stay on /persist (in case symlinks lead elsewhere) # "--exclude-caches" # Excludes marked cache directories
"--cleanup-cache" # Auto remove old cache directories # "--one-file-system" # Only stay on /persist (in case symlinks lead elsewhere)
]; # "--cleanup-cache" # Auto remove old cache directories
}; # ];
# };
xserver = { xserver = {
# Configure keymap in X11 # Configure keymap in X11