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 =
|
2022-11-25 10:24:29 +01:00
|
|
|
pkgs.rofi-wayland.override { plugins = with pkgs; [ rofi-calc rofi-emoji ]; };
|
2022-07-15 13:11:54 +02:00
|
|
|
extraConfig = { combi-modi = "drun,window,emoji"; };
|
|
|
|
};
|
|
|
|
xdg = {
|
|
|
|
enable = true;
|
|
|
|
configFile."networkmanager-dmenu/config.ini".text = ''
|
|
|
|
[dmenu]
|
|
|
|
dmenu_command = rofi
|
|
|
|
'';
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
}
|