nixos/home/xdg/home.nix

27 lines
548 B
Nix
Raw Normal View History

2025-01-13 11:52:09 +08:00
{
config,
...
}:
{
xdg = {
enable = true;
2025-01-13 11:52:09 +08:00
userDirs =
let
home = config.home.homeDirectory;
local = "${home}/local";
in
{
enable = true;
createDirectories = true;
download = "${home}/dl";
desktop = "${local}/desktop";
documents = "${local}/documents";
music = "${local}/music";
pictures = "${local}/pictures";
publicShare = "${local}/public";
templates = "${local}/templates";
videos = "${local}/videos";
};
};
}