diff --git a/modules/programs/rofi.nix b/modules/programs/rofi.nix index f344e88e2..734bcc423 100644 --- a/modules/programs/rofi.nix +++ b/modules/programs/rofi.nix @@ -131,6 +131,17 @@ in { enable = mkEnableOption "Rofi: A window switcher, application launcher and dmenu replacement"; + package = mkOption { + default = pkgs.rofi; + type = types.package; + description = '' + Package providing the rofi binary. + ''; + example = literalExample '' + pkgs.rofi.override { plugins = [ pkgs.rofi-emoji ]; }; + ''; + }; + width = mkOption { default = null; type = types.nullOr types.int; @@ -295,7 +306,7 @@ in { ''; }]; - home.packages = [ pkgs.rofi ]; + home.packages = [ cfg.package ]; home.file."${cfg.configPath}".text = '' ${setOption "width" cfg.width}