2018-08-15 09:55:35 +01:00
|
|
|
{ config, lib, ... }:
|
|
|
|
|
|
|
|
with lib;
|
|
|
|
{
|
2020-04-02 01:16:24 +01:00
|
|
|
meta = {
|
|
|
|
maintainers = teams.freedesktop.members;
|
|
|
|
};
|
|
|
|
|
2018-08-15 09:55:35 +01:00
|
|
|
options = {
|
|
|
|
xdg.menus.enable = mkOption {
|
|
|
|
type = types.bool;
|
|
|
|
default = true;
|
|
|
|
description = ''
|
2020-04-02 01:16:24 +01:00
|
|
|
Whether to install files to support the
|
2018-08-15 09:55:35 +01: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 01:16:24 +01:00
|
|
|
environment.pathsToLink = [
|
2018-08-15 09:55:35 +01:00
|
|
|
"/share/applications"
|
|
|
|
"/share/desktop-directories"
|
|
|
|
"/etc/xdg/menus"
|
|
|
|
"/etc/xdg/menus/applications-merged"
|
|
|
|
];
|
|
|
|
};
|
|
|
|
|
|
|
|
}
|