diff --git a/modules/restic.nix b/modules/restic.nix index 5e23908..37ed378 100644 --- a/modules/restic.nix +++ b/modules/restic.nix @@ -5,13 +5,12 @@ let name = "${config.networking.hostName}-system"; repository = "s3:https://s3.eu-central-1.wasabisys.com/sbruder-restic"; excludes = [ - # General + # Caches "/home/*/Downloads/" "/home/*/.cache/" "/home/*/**/cache/" - "/home/*/.claws-mail/imapcache" - "/home/*/.local/share/Trash" - "/home/*/.local/share/nvim/" + "/home/*/.local/share/Trash" # some gui applications use it + "/data/cache/" # Rust "/home/*/**/target/debug/" @@ -23,25 +22,11 @@ let "/home/*/.rustup/toolchains/" "/home/*/.cargo" - # Python - "/home/*/.local/share/pyppeteer" - "/home/*/.local/share/virtualenvs/" - "/home/*/.platformio/" - - # Node - "/home/*/**/.local-chromium" - - # Project related + # Misc "/home/*/mount" - "/home/*/projects/vapoursynth/data/" - "/home/*/projects/vapoursynth/out/" - "/home/*/projects/vapoursynth/src/" - # Docker + # Docker (state should be kept somewhere else) "/var/lib/docker/" - - # Stuff I do not want to back up - "/data/cache/" ]; excludesFile = pkgs.writeText "exludes.txt" (builtins.concatStringsSep "\n" excludes); maybePath = path: (lib.optional (builtins.pathExists path) (toString path));