mirror of
https://github.com/lhns/steam-frame-nix.git
synced 2026-10-06 08:00:23 +02:00
- runtimeDir, userBus, outerBusEnv, userServices.*, portalFix.enable
-> session.{runtimeDir, bus, busEnv, services.*, portalFix.enable}
- keyboardLayout/keyboardVariant -> keyboard.layout/variant;
steamKeyboardPatch.enable -> keyboard.vr.extraKeys.enable
- hiddenApps -> launcherMenu.hiddenApps
- launcherMenu.launchDebounce -> launchDebounceSeconds (also the patch's
option key; launcher-menu-launch VERSION 3)
- "Steam UI patch" in option descriptions
Old names keep working with a rename warning (outerBusEnv is read-only:
reading it warns).
28 lines
810 B
Nix
28 lines
810 B
Nix
# Hide desktop entries from the "+" menu and the KDE menu: a user entry with
|
|
# Hidden=true masks the system one.
|
|
{ config, lib, ... }: {
|
|
imports = [
|
|
(lib.mkRenamedOptionModule
|
|
[ "steamFrame" "hiddenApps" ] [ "steamFrame" "launcherMenu" "hiddenApps" ])
|
|
];
|
|
|
|
options.steamFrame.launcherMenu.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.launcherMenu.hiddenApps)
|
|
(_: {
|
|
text = ''
|
|
[Desktop Entry]
|
|
Hidden=true
|
|
'';
|
|
});
|
|
}
|