dotfiles/modules/graphical/dmenu.nix
2022-12-21 14:18:03 -07:00

15 lines
315 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";
};
}