aboutsummaryrefslogtreecommitdiffstats
path: root/modules/desktop/popup-manager/rofi/default.nix
blob: 009db89575a0192c1e0100c1817a0b9952b9d3ce (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.rasi.mustache;
		};
	};
}