159e378cbb
GitOrigin-RevId: c04d5652cfa9742b1d519688f65d1bbccea9eb7e
27 lines
623 B
Nix
27 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"
|
|
];
|
|
};
|
|
|
|
}
|