marleyos/modules/home/programs/rofi/default.nix

27 lines
498 B
Nix

{
lib,
config,
pkgs,
inputs,
...
}: let
inherit (lib) mkEnableOption mkIf;
cfg = config.marleyos.programs.rofi;
hasXorg = config.xsession.enable;
in {
options.marleyos.programs.rofi.enable = mkEnableOption "rofi";
config = mkIf (cfg.enable && hasXorg) {
home.packages = with pkgs; [
rofi
];
marleyos.apps.launcher = {
package = pkgs.rofi;
command = "--show drun";
};
xdg.configFile."rofi".source = "${inputs.rofi-themes}/files";
};
}