1{ config, lib, ... }:
2
3with lib;
4{
5 options = {
6 xdg.menus.enable = mkOption {
7 type = types.bool;
8 default = true;
9 description = ''
10 Whether to install files to support the
11 <link xlink:href="https://specifications.freedesktop.org/menu-spec/menu-spec-latest.html">XDG Desktop Menu specification</link>.
12 '';
13 };
14 };
15
16 config = mkIf config.xdg.menus.enable {
17 environment.pathsToLink = [
18 "/share/applications"
19 "/share/desktop-directories"
20 "/etc/xdg/menus"
21 "/etc/xdg/menus/applications-merged"
22 ];
23 };
24
25}