marleyos/home/xdg.nix

31 lines
652 B
Nix
Raw Normal View History

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