Skip to content

Commit 76ba6ef

Browse files
committed
chore: keep ~/.cache off tmpfs to avoid high RAM usage
1 parent f173ae3 commit 76ba6ef

1 file changed

Lines changed: 3 additions & 14 deletions

File tree

hosts/idols-ai/preservation.nix

Lines changed: 3 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -102,6 +102,9 @@ in
102102
"Documents"
103103
"Videos"
104104

105+
# Keep .cache off tmpfs to avoid high RAM usage; many apps use it and it is storage-heavy.
106+
".cache"
107+
105108
# ======================================
106109
# Codes / Work / Playground
107110
# ======================================
@@ -117,8 +120,6 @@ in
117120
".local/state/home-manager"
118121
".local/state/nix/profiles"
119122
".local/share/nix"
120-
".cache/nix"
121-
".cache/nixpkgs-review"
122123

123124
# ======================================
124125
# IDE / Editors
@@ -201,7 +202,6 @@ in
201202
".local/bin"
202203
# python uv
203204
".local/share/uv"
204-
".cache/uv"
205205

206206
# ======================================
207207
# Security
@@ -266,9 +266,7 @@ in
266266
# ======================================
267267
".mozilla"
268268
".config/google-chrome"
269-
".cache/google-chrome"
270269
".config/chromium"
271-
".cache/chromium"
272270

273271
# ======================================
274272
# CLI data
@@ -277,7 +275,6 @@ in
277275
".local/share/zoxide"
278276
".local/share/direnv"
279277
".local/share/k9s"
280-
".cache/tealdeer" # tldr
281278

282279
# ======================================
283280
# Containers
@@ -309,13 +306,6 @@ in
309306
".config/mozc" # used by fcitx5-mozc
310307

311308
".config/nushell"
312-
313-
# noctalia shell
314-
".cache/noctalia"
315-
316-
# AI
317-
".cache/modelscope"
318-
".cache/huggingface"
319309
];
320310
files = [
321311
{
@@ -357,7 +347,6 @@ in
357347
in
358348
{
359349
"/home/${username}/.config".d = permission;
360-
"/home/${username}/.cache".d = permission;
361350
"/home/${username}/.local".d = permission;
362351
"/home/${username}/.local/share".d = permission;
363352
"/home/${username}/.local/state".d = permission;

0 commit comments

Comments
 (0)