marleyos/home/xdg.nix
punkfairie bbfa57c6ab
🚚 refactor(home): Reorganize modules
Instead of having separate folders for each program with a default.nix
inside, moved modules into programs/services/xorg respectively. Xdg was
moved to the root home folder as it makes the most sense there.
2024-11-03 13:20:00 -08:00

30 lines
652 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";
};
};
}