From 14e573db264debf99046142ce9a72f41ccdf3baa Mon Sep 17 00:00:00 2001 From: Alan Pearce Date: Sun, 2 Apr 2023 20:27:15 +0200 Subject: darwin: let GUI applications know about XDG_CACHE_HOME --- user/settings/darwin.nix | 15 +++++++++++++++ 1 file changed, 15 insertions(+) (limited to 'user/settings/darwin.nix') 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 = { -- cgit 1.4.1