nix/modules/wm/xdg/default.nix
2024-11-24 21:35:15 +01:00

20 lines
334 B
Nix

{
config,
lib,
username,
...
}: {
options = {
xdg.enable = lib.mkEnableOption "";
};
config = lib.mkIf config.xdg.enable {
home-manager.users.${username} = {
xdg.userDirs = {
enable = true;
download = "/home/${username}/dl";
desktop = "/home/${username}/dl";
};
};
};
}