2024-11-17 19:01:26 -08:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
config,
|
|
|
|
pkgs,
|
|
|
|
inputs,
|
|
|
|
...
|
2025-01-12 11:12:41 -08:00
|
|
|
}: let
|
2024-11-17 19:01:26 -08:00
|
|
|
inherit (lib) mkEnableOption mkIf;
|
|
|
|
|
|
|
|
cfg = config.marleyos.programs.rofi;
|
|
|
|
hasXorg = config.xsession.enable;
|
2025-01-12 11:12:41 -08:00
|
|
|
in {
|
2024-11-17 19:01:26 -08:00
|
|
|
options.marleyos.programs.rofi.enable = mkEnableOption "rofi";
|
|
|
|
|
|
|
|
config = mkIf (cfg.enable && hasXorg) {
|
|
|
|
home.packages = with pkgs; [
|
|
|
|
rofi
|
|
|
|
];
|
|
|
|
|
2025-01-12 11:12:41 -08:00
|
|
|
marleyos.apps.launcher = {
|
|
|
|
package = pkgs.rofi;
|
|
|
|
command = "--show drun";
|
|
|
|
};
|
|
|
|
|
2024-11-17 19:01:26 -08:00
|
|
|
xdg.configFile."rofi".source = "${inputs.rofi-themes}/files";
|
|
|
|
};
|
|
|
|
}
|