summary refs log tree commit diff stats
diff options
context:
space:
mode:
-rw-r--r--user/settings/darwin.nix15
1 files changed, 15 insertions, 0 deletions
diff --git a/user/settings/darwin.nix b/user/settings/darwin.nix
index fb6cf196..2ca4ddf6 100644
--- a/user/settings/darwin.nix
+++ b/user/settings/darwin.nix
@@ -63,6 +63,21 @@
         LowPriorityBackgroundIO = true;
       };
     };
+    set-xdg-cache-home = {
+      enable = true;
+
+      config = {
+        ProgramArguments = [
+          "/bin/launchctl"
+          "setenv"
+          "XDG_CACHE_HOME"
+          config.xdg.cacheHome
+        ];
+        RunAtLoad = true;
+        StandardErrorPath = "/dev/null";
+        StandardOutputPath = "/dev/null";
+      };
+    };
   };
 
   programs.zsh.shellAliases = {