From 152c11f911868a307b732f3011437e52476757fb Mon Sep 17 00:00:00 2001 From: Spectre Date: Fri, 7 Jun 2024 16:14:29 +0200 Subject: [PATCH] persist --- home/packages.nix | 2 +- home/persist.nix | 36 +++++++++++++++++++++++++++++++++++- 2 files changed, 36 insertions(+), 2 deletions(-) diff --git a/home/packages.nix b/home/packages.nix index 594526b1..26a103c4 100644 --- a/home/packages.nix +++ b/home/packages.nix @@ -18,7 +18,7 @@ xdg-utils hyprshot - obsidian + # obsidian xournalpp vlc keepassxc diff --git a/home/persist.nix b/home/persist.nix index 64629674..870535c9 100644 --- a/home/persist.nix +++ b/home/persist.nix @@ -1 +1,35 @@ -{...}: {} +{ + lib, + conf, +}: { + data = { + directories = [ + ".config/syncthing" + ".gnupg" + ".local/share/PrismLauncher/instances" + ".ssh" + + "nixos" + ]; + files = []; + }; + + cache = { + directories = [ + ".cache/nix" + ".cache/spotify" + ".cargo" + ".config/obsidian" + ".config/spotify" + lib.mkIf + conf.gaming.enable + ".local/share/PrismLauncher" + lib.mkIf + conf.gaming.enable + ".local/share/Steam" + ".local/state/wireplumber" + ".thunderbird" + ]; + files = []; + }; +}