20 lines
334 B
Nix
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";
|
|
};
|
|
};
|
|
};
|
|
}
|