Files
nix/users/blake/dots/xdg/default.nix
2025-10-15 23:07:01 -05:00

36 lines
1.1 KiB
Nix

{
pkgs,
config,
...
}: {
home.packages = with pkgs; [xdg-ninja];
xdg = {
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 = {
GOPATH="$XDG_DATA_HOME/go";
_JAVA_OPTIONS=''-Djava.util.prefs.userRoot="$XDG_CONFIG_HOME"/java'';
};
}