nix-config/home/xdg-user-dirs.nix
Donovan Glover b3f5c61625
xdg: Prefer hidden over noDisplay for desktop entries
Prevents the desktop entry from showing in applications like Thunar.
Long-term this isn't a viable solution since it prevents the hidden
applications from being used by Thunar.
2024-08-07 14:50:34 -04:00

68 lines
1.3 KiB
Nix

{ config, ... }:
let
inherit (config.home) homeDirectory;
no = {
name = "";
settings = {
Hidden = "true";
};
};
in
{
xdg = {
desktopEntries = {
htop = no;
fish = no;
nvim = no;
yazi = no;
gcdemu = no;
tectonic = no;
mullvad-vpn = no;
nixos-manual = no;
image-analyzer = no;
activate-linux = no;
thunar-settings = no;
thunar-bulk-rename = no;
thunar-volman-settings = no;
fcitx5-configtool = no;
base = no;
calc = no;
draw = no;
math = no;
writer = no;
impress = no;
startcenter = no;
"org.fcitx.Fcitx5" = no;
"org.fcitx.fcitx5-migrator" = no;
"org.gnome.Extensions" = no;
"org.pwmt.zathura" = no;
"org.gnome.eog" = no;
"org.gnome.Settings" = no;
"org.sigxcpu.Livi" = no;
};
userDirs = {
enable = true;
createDirectories = true;
desktop = null;
templates = null;
publicShare = null;
download = "${homeDirectory}/";
documents = "${homeDirectory}/";
music = "${homeDirectory}/";
pictures = "${homeDirectory}/";
videos = "${homeDirectory}/";
};
configFile."user-dirs.locale".text = "ja_JP";
};
}