marleyos/home/xdg/default.nix
punkfairie 9408679e81
🎨 style(fmt): Switch to nixfmt; add treesitter hints
Switch to nixfmt as when I was adding treesitter injected lang hints,
Alejandra was not formatting those comments in a way I liked. Turns out
I like the nixfmt style in general better.
2024-11-02 15:35:48 -07: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";
};
};
}