nixpkgs/nixos/modules/config/xdg/menus.nix
2026-03-13 16:53:28 +01:00

27 lines
598 B
Nix

{ config, lib, ... }:
{
meta = {
teams = [ lib.teams.freedesktop ];
};
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/latest).
'';
};
};
config = lib.mkIf config.xdg.menus.enable {
environment.pathsToLink = [
"/share/applications"
"/share/desktop-directories"
"/etc/xdg/menus"
"/etc/xdg/menus/applications-merged"
];
};
}