summary refs log blame commit diff
path: root/nixos/modules/config/xdg/menus.nix
blob: 6735a7a5c430f96a33de0cb1fd5e020822e0d1bd (plain) (tree)
1
2
3
4
5
6
7
8



                     



                                            




                                 
                                               





                                                                                                                                        
                               







                                          
{ 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
        <link xlink:href="https://specifications.freedesktop.org/menu-spec/menu-spec-latest.html">XDG Desktop Menu specification</link>.
      '';
    };
  };

  config = mkIf config.xdg.menus.enable {
    environment.pathsToLink = [
      "/share/applications"
      "/share/desktop-directories"
      "/etc/xdg/menus"
      "/etc/xdg/menus/applications-merged"
    ];
  };

}