mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-28 01:43:15 +00:00
28 lines
623 B
Nix
28 lines
623 B
Nix
{ config, lib, ... }:
|
|
{
|
|
meta = {
|
|
maintainers = lib.teams.freedesktop.members;
|
|
};
|
|
|
|
options = {
|
|
xdg.menus.enable = lib.mkOption {
|
|
type = lib.types.bool;
|
|
default = true;
|
|
description = ''
|
|
Whether to install files to support the
|
|
[XDG Desktop Menu specification](https://specifications.freedesktop.org/menu-spec/menu-spec-latest.html).
|
|
'';
|
|
};
|
|
};
|
|
|
|
config = lib.mkIf config.xdg.menus.enable {
|
|
environment.pathsToLink = [
|
|
"/share/applications"
|
|
"/share/desktop-directories"
|
|
"/etc/xdg/menus"
|
|
"/etc/xdg/menus/applications-merged"
|
|
];
|
|
};
|
|
|
|
}
|