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

26 lines
468 B
Nix
Raw Normal View History

2024-11-17 19:01:26 -08:00
{
lib,
config,
pkgs,
inputs,
...
}: let
2024-11-17 19:01:26 -08:00
cfg = config.marleyos.programs.rofi;
hasXorg = config.xsession.enable;
in {
options.marleyos.programs.rofi.enable = lib.mkEnableOption "rofi";
2024-11-17 19:01:26 -08:00
config = lib.mkIf (cfg.enable && hasXorg) {
2024-11-17 19:01:26 -08:00
home.packages = with pkgs; [
rofi
];
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";
};
}