nixos-config/home/rofi.nix

27 lines
393 B
Nix
Raw Permalink Normal View History

2022-04-10 11:54:58 +02:00
{
config,
lib,
pkgs,
...
}: let
inherit
(lib)
2022-01-11 16:08:21 +01:00
mkEnableOption
mkIf
2022-04-10 11:54:58 +02:00
;
2022-01-11 16:08:21 +01:00
2021-07-29 11:17:22 +02:00
cfg = config.my.home.rofi;
2022-04-10 11:54:58 +02:00
in {
2022-01-11 16:08:21 +01:00
options.my.home.rofi = {
2022-04-10 11:54:58 +02:00
enable = (mkEnableOption "rofi configuration") // {default = config.my.home.x.enable;};
2021-07-29 11:17:22 +02:00
};
2022-01-11 16:08:21 +01:00
config = mkIf cfg.enable {
2021-07-29 11:17:22 +02:00
programs.rofi = {
enable = true;
terminal = "${pkgs.alacritty}/bin/alacritty";
};
};
}