marleyos/home/xdg/default.nix
2024-10-25 19:53:54 -07:00

27 lines
604 B
Nix

{config, ...}: {
home.preferXdgDirectories = true;
xdg = let
homeDir = config.home.homeDirectory;
in {
enable = true;
cacheHome = "${homeDir}/.cache";
configHome = "${homeDir}/.config";
dataHome = "${homeDir}/.local/share";
stateHome = "${homeDir}/.local/state";
userDirs = {
enable = true;
createDirectories = true;
desktop = "${homeDir}/desktop";
documents = null;
download = "${homeDir}/downloads";
music = null;
pictures = "${homeDir}/pictures";
templates = null;
videos = "${homeDir}/videos";
};
};
}