2021-07-29 11:17:22 +02:00
|
|
|
{ config, lib, pkgs, ... }:
|
|
|
|
let
|
2022-01-11 16:08:21 +01:00
|
|
|
inherit (lib)
|
|
|
|
mkEnableOption
|
|
|
|
mkIf
|
|
|
|
;
|
|
|
|
|
2021-07-29 11:17:22 +02:00
|
|
|
cfg = config.my.home.rofi;
|
|
|
|
in
|
|
|
|
{
|
2022-01-11 16:08:21 +01:00
|
|
|
options.my.home.rofi = {
|
2021-07-29 12:05:06 +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";
|
|
|
|
extraConfig = {
|
|
|
|
ssh-client = "${pkgs.mosh}/bin/mosh";
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
}
|