nixpkgs/nixos/modules/config/xdg/menus.nix
2024-08-29 23:48:09 +02:00

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"
];
};
}