home: rofi: setup config

This commit is contained in:
Antoine Martin 2021-07-29 11:17:22 +02:00
parent e923b28c6c
commit fb2b03fb79
2 changed files with 21 additions and 0 deletions

View file

@ -9,6 +9,7 @@
./flameshot.nix
./git.nix
./laptop.nix
./rofi.nix
./secrets
./starship.nix
./themes

20
home/rofi.nix Normal file
View file

@ -0,0 +1,20 @@
{ config, lib, pkgs, ... }:
let
cfg = config.my.home.rofi;
in
{
options.my.home.rofi = with lib; {
enable = (mkEnableOption "rofi configuration") // { default = true; };
};
config = lib.mkIf cfg.enable {
programs.rofi = {
enable = true;
terminal = "${pkgs.alacritty}/bin/alacritty";
extraConfig = {
ssh-client = "${pkgs.mosh}/bin/mosh";
};
};
};
}