aboutsummaryrefslogtreecommitdiffstats
path: root/modules/desktop/popup-manager/rofi/default.nix
blob: be22bcd09851818df9811b4f5ae8a4ee9fec426d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
{ 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.default = "${pkgs.rofi}/bin/rofi -show run";
		programs.rofi.enable = true;
		programs.rofi.font = "FiraCode Nerd Font 16";
		programs.rofi.theme = config.scheme {
			template = builtins.readFile ./theme.mustache.rasi;
		};
	};
}