2018-08-15 10:55:35 +02:00
|
|
|
{ config, lib, ... }:
|
|
|
|
|
|
|
|
with lib;
|
|
|
|
{
|
2020-04-02 02:16:24 +02:00
|
|
|
meta = {
|
|
|
|
maintainers = teams.freedesktop.members;
|
|
|
|
};
|
|
|
|
|
2018-08-15 10:55:35 +02:00
|
|
|
options = {
|
|
|
|
xdg.menus.enable = mkOption {
|
|
|
|
type = types.bool;
|
|
|
|
default = true;
|
|
|
|
description = ''
|
2020-04-02 02:16:24 +02:00
|
|
|
Whether to install files to support the
|
2018-08-15 10:55:35 +02:00
|
|
|
<link xlink:href="https://specifications.freedesktop.org/menu-spec/menu-spec-latest.html">XDG Desktop Menu specification</link>.
|
|
|
|
'';
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
config = mkIf config.xdg.menus.enable {
|
2020-04-02 02:16:24 +02:00
|
|
|
environment.pathsToLink = [
|
2018-08-15 10:55:35 +02:00
|
|
|
"/share/applications"
|
|
|
|
"/share/desktop-directories"
|
|
|
|
"/etc/xdg/menus"
|
|
|
|
"/etc/xdg/menus/applications-merged"
|
|
|
|
];
|
|
|
|
};
|
|
|
|
|
|
|
|
}
|