{ pkgs, config, ... }: { home.packages = with pkgs; [xdg-ninja]; xdg = if pkgs.system == "x86_64-darwin" then {} else { enable = true; configHome = "${config.home.homeDirectory}/.config"; cacheHome = "${config.home.homeDirectory}/.cache"; dataHome = "${config.home.homeDirectory}/.local/share"; stateHome = "${config.home.homeDirectory}/.local/state"; userDirs = { enable = true; # writes ~/.config/user-dirs.dirs desktop = "${config.home.homeDirectory}/desktop"; download = "${config.home.homeDirectory}/downloads"; documents = "${config.home.homeDirectory}/documents"; pictures = "${config.home.homeDirectory}/pictures"; videos = "${config.home.homeDirectory}/videos"; music = "${config.home.homeDirectory}/music"; publicShare = "${config.home.homeDirectory}/public"; templates = "${config.home.homeDirectory}/templates"; }; }; # misc env variables to get things out of ~ (<3 xdg-ninja) home.sessionVariables = if pkgs.system == "x86_64-darwin" then {} else { GOPATH="$XDG_DATA_HOME/go"; _JAVA_OPTIONS=''-Djava.util.prefs.userRoot="$XDG_CONFIG_HOME"/java''; }; }