nixpkgs/nixos/modules/config/xdg/menus.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

28 lines
623 B
Nix
Raw Normal View History

{ config, lib, ... }:
{
meta = {
2024-08-27 18:42:50 +00:00
maintainers = lib.teams.freedesktop.members;
};
options = {
2024-08-27 18:42:50 +00:00
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).
'';
};
};
2024-08-27 18:42:50 +00:00
config = lib.mkIf config.xdg.menus.enable {
environment.pathsToLink = [
"/share/applications"
"/share/desktop-directories"
"/etc/xdg/menus"
"/etc/xdg/menus/applications-merged"
];
};
}