{ config, lib, pkgs, ... }: { options.desktop.popup-manager.rofi = { enable = lib.mkEnableOption "Enables rofi."; }; config = lib.mkIf config.desktop.popup-manager.rofi.enable { desktop.popup-manager.application-launcher.command = "${pkgs.rofi}/bin/rofi -show run"; programs.rofi.enable = true; programs.rofi.font = "${config.fonts.normal} ${toString config.fonts.size}"; programs.rofi.theme = config.scheme { template = builtins.readFile ./theme.mustache.rasi; }; }; }