mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-27 17:33:09 +00:00
26 lines
581 B
Nix
26 lines
581 B
Nix
{ config, lib, ... }:
|
|
|
|
with lib;
|
|
{
|
|
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"
|
|
];
|
|
};
|
|
|
|
}
|