{ config, lib, pkgs, ... }: let inherit (lib) mkIf; theme = config.theme; cfg = config.apps.rofi; in { config = mkIf cfg.enable { default.appLauncher = lib.mkOverride 700 "rofi -show drun"; home.packages = [ pkgs.rofi ]; home.file = { ".config/rofi/config.rasi".source = ./config.rasi; ".config/rofi/theme.rasi".text = import ./theme.nix {inherit theme;}; }; }; }