From 76ba6eff91f3f3cc1e59dbd66025bfdbc603fc5b Mon Sep 17 00:00:00 2001 From: Ryan Yin Date: Fri, 13 Mar 2026 10:41:27 +0800 Subject: [PATCH] chore: keep ~/.cache off tmpfs to avoid high RAM usage --- hosts/idols-ai/preservation.nix | 17 +++-------------- 1 file changed, 3 insertions(+), 14 deletions(-) diff --git a/hosts/idols-ai/preservation.nix b/hosts/idols-ai/preservation.nix index f172ddd9..0552860d 100644 --- a/hosts/idols-ai/preservation.nix +++ b/hosts/idols-ai/preservation.nix @@ -102,6 +102,9 @@ in "Documents" "Videos" + # Keep .cache off tmpfs to avoid high RAM usage; many apps use it and it is storage-heavy. + ".cache" + # ====================================== # Codes / Work / Playground # ====================================== @@ -117,8 +120,6 @@ in ".local/state/home-manager" ".local/state/nix/profiles" ".local/share/nix" - ".cache/nix" - ".cache/nixpkgs-review" # ====================================== # IDE / Editors @@ -201,7 +202,6 @@ in ".local/bin" # python uv ".local/share/uv" - ".cache/uv" # ====================================== # Security @@ -266,9 +266,7 @@ in # ====================================== ".mozilla" ".config/google-chrome" - ".cache/google-chrome" ".config/chromium" - ".cache/chromium" # ====================================== # CLI data @@ -277,7 +275,6 @@ in ".local/share/zoxide" ".local/share/direnv" ".local/share/k9s" - ".cache/tealdeer" # tldr # ====================================== # Containers @@ -309,13 +306,6 @@ in ".config/mozc" # used by fcitx5-mozc ".config/nushell" - - # noctalia shell - ".cache/noctalia" - - # AI - ".cache/modelscope" - ".cache/huggingface" ]; files = [ { @@ -357,7 +347,6 @@ in in { "/home/${username}/.config".d = permission; - "/home/${username}/.cache".d = permission; "/home/${username}/.local".d = permission; "/home/${username}/.local/share".d = permission; "/home/${username}/.local/state".d = permission;