all repos — nixfiles @ 14e573db264debf99046142ce9a72f41ccdf3baa

System and user configuration, managed by nix and home-manager

darwin: let GUI applications know about XDG_CACHE_HOME

Alan Pearce
commit

14e573db264debf99046142ce9a72f41ccdf3baa

parent

74faf88c4f59a235c598cc9fdc76b2e07b9e4c39

1 file changed, 15 insertions(+), 0 deletions(-)

jump to
M user/settings/darwin.nixuser/settings/darwin.nix
@@ -63,6 +63,21 @@ ProcessType = "Background";
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 = {