dotfiles/modules/nixos/graphical/dmenu.nix

15 lines
315 B
Nix
Raw Permalink Normal View History

{ 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
};
}