dotfiles/modules/programs/rofi/default.nix

37 lines
825 B
Nix
Raw Normal View History

2022-07-15 13:11:54 +02:00
{ config
, lib
, pkgs
, ...
}:
with lib;
let
cfg = config.my.programs.rofi;
in
{
2022-10-15 20:00:09 +02:00
options.my.programs.rofi.enable = mkEnableOption "rofi";
2022-07-15 13:11:54 +02:00
config = mkIf cfg.enable {
2022-10-06 20:32:21 +02:00
environment.systemPackages = with pkgs; [
(lib.mkIf config.networking.networkmanager.enable networkmanager_dmenu)
(lib.mkIf config.hardware.bluetooth.enable rofi-bluetooth)
rofi-power-menu
];
2022-07-15 13:11:54 +02:00
home-manager.users.moritz = {
programs.rofi = {
enable = true;
package =
pkgs.rofi.override { plugins = with pkgs; [ rofi-calc rofi-emoji ]; };
extraConfig = { combi-modi = "drun,window,emoji"; };
};
xdg = {
enable = true;
configFile."networkmanager-dmenu/config.ini".text = ''
[dmenu]
dmenu_command = rofi
'';
};
};
};
}