marleyos/modules/home/programs/rofi/default.nix
2024-11-17 19:10:26 -08:00

24 lines
401 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
];
xdg.configFile."rofi".source = "${inputs.rofi-themes}/files";
};
}