{ config, lib, ... }: with lib; { meta = { maintainers = teams.freedesktop.members; }; options = { xdg.menus.enable = mkOption { type = types.bool; default = true; description = '' Whether to install files to support the XDG Desktop Menu specification. ''; }; }; config = mkIf config.xdg.menus.enable { environment.pathsToLink = [ "/share/applications" "/share/desktop-directories" "/etc/xdg/menus" "/etc/xdg/menus/applications-merged" ]; }; }