dotfiles/modules/nixos/graphical/dmenu.nix

18 lines
321 B
Nix
Raw Permalink Normal View History

2024-04-20 13:42:06 +00:00
{
config,
pkgs,
lib,
...
}:
2022-05-04 01:11:31 +00:00
{
2022-12-21 21:18:03 +00:00
options.gui.dmenu.enable = lib.mkEnableOption "dmenu launcher.";
config = lib.mkIf (config.services.xserver.enable && config.dmenu.enable) {
2022-05-04 01:11:31 +00:00
home-manager.users.${config.user}.home.packages = [ pkgs.dmenu ];
gui.launcherCommand = "${pkgs.dmenu}/bin/dmenu_run";
2022-05-04 01:11:31 +00:00
};
}