Files
lhns--steam-frame-nix/modules/hidden-apps.nix
T
Pierre Kisters 2dc9ccb83e Home Manager modules for the Steam Frame
Portal fix, Steam-session keyboard layout, VR keyboard patch, hidden
apps, clipboard-sync and a Firefox Flatpak launcher, all under
steamFrame.*, plus the outer-session user-services mechanism.
2026-09-27 15:09:13 +02:00

22 lines
822 B
Nix

# Hide system apps from menus, including the Steam session's "+" menu (with
# Developer Mode on it lists every desktop entry GLib would show). A user
# entry with Hidden=true in ~/.local/share/applications masks the one in
# /usr/share/applications. Also hides them from the nested desktop's KDE menu.
{ config, lib, ... }: {
options.steamFrame.hiddenApps = lib.mkOption {
type = lib.types.listOf lib.types.str;
default = [ ];
example = [ "lxterminal" "cmake-gui" "firewall-config" "renderdoc" ];
description = "Desktop entry ids (without .desktop) to hide from the \"+\" menu and the KDE menu.";
};
config.xdg.dataFile = lib.genAttrs
(map (id: "applications/${id}.desktop") config.steamFrame.hiddenApps)
(_: {
text = ''
[Desktop Entry]
Hidden=true
'';
});
}