nixdots/home/programs/xdg/default.nix

32 lines
836 B
Nix
Raw Normal View History

2024-07-27 01:07:07 +02:00
{
config,
pkgs,
...
}: {
2024-04-04 23:17:11 +02:00
imports = [
./mime-apps.nix
./user-dirs.nix
./config-files.nix
2024-06-22 07:41:08 +02:00
./portal.nix
2024-04-04 23:17:11 +02:00
];
xdg = {
enable = true;
cacheHome = "${config.home.homeDirectory}/.cache";
configHome = "${config.home.homeDirectory}/.config";
dataHome = "${config.home.homeDirectory}/.local/share";
stateHome = "${config.home.homeDirectory}/.local/state";
};
2024-04-04 23:28:59 +02:00
2024-04-05 00:10:27 +02:00
# These are not supported via xdg configuration, set them manually
# Defined in /etc/profiles/per-user/$USER/etc/profile.d/hm-session-vars.sh
2024-04-04 23:28:59 +02:00
home.sessionVariables = {
"XDG_RUNTIME_DIR" = "/run/user/$UID";
2024-04-05 00:10:27 +02:00
"XDG_BIN_HOME" = "${config.home.homeDirectory}/.local/bin";
2024-04-04 23:28:59 +02:00
};
2024-04-04 23:41:41 +02:00
# xdg-ninja is a CLI tool that checks $HOME for unwanted
# files/dirs and shows how to move them to XDG dirs
2024-07-27 01:07:07 +02:00
home.packages = [pkgs.xdg-ninja];
2024-04-04 23:17:11 +02:00
}