36 lines
1.1 KiB
Nix
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'';
|
|
};
|
|
|
|
}
|