mirror of
https://github.com/nmasur/dotfiles
synced 2024-11-25 09:05:36 +00:00
18 lines
321 B
Nix
18 lines
321 B
Nix
{
|
|
config,
|
|
pkgs,
|
|
lib,
|
|
...
|
|
}:
|
|
|
|
{
|
|
|
|
options.gui.dmenu.enable = lib.mkEnableOption "dmenu launcher.";
|
|
|
|
config = lib.mkIf (config.services.xserver.enable && config.dmenu.enable) {
|
|
|
|
home-manager.users.${config.user}.home.packages = [ pkgs.dmenu ];
|
|
gui.launcherCommand = "${pkgs.dmenu}/bin/dmenu_run";
|
|
};
|
|
}
|