feat: add rofi module
This commit is contained in:
parent
30451c48cd
commit
a5bedcc3cc
31
modules/home/applications/rofi.nix
Normal file
31
modules/home/applications/rofi.nix
Normal file
@ -0,0 +1,31 @@
|
||||
{
|
||||
config,
|
||||
lib,
|
||||
pkgs,
|
||||
...
|
||||
}:
|
||||
let
|
||||
inherit (lib) getExe mkEnableOption mkIf;
|
||||
inherit (config.theme) fonts;
|
||||
cfg = config.ataraxia.programs.rofi;
|
||||
in
|
||||
{
|
||||
options.ataraxia.programs.rofi = {
|
||||
enable = mkEnableOption "Enable rofi program";
|
||||
};
|
||||
|
||||
config = mkIf cfg.enable {
|
||||
defaultApplications.dmenu = {
|
||||
cmd = "${getExe config.programs.rofi.package} -show run";
|
||||
desktop = "rofi";
|
||||
};
|
||||
|
||||
programs.rofi = {
|
||||
enable = true;
|
||||
package = pkgs.rofi-wayland;
|
||||
font = "${fonts.mono.family} ${toString fonts.size.big}";
|
||||
terminal = config.defaultApplications.term.cmd;
|
||||
# theme = "${themeFile}";
|
||||
};
|
||||
};
|
||||
}
|
@ -82,6 +82,7 @@ in
|
||||
ataraxia.programs.firefox.enable = mkDefault true;
|
||||
ataraxia.programs.kitty.enable = mkDefault true;
|
||||
ataraxia.programs.mpv.enable = mkDefault true;
|
||||
ataraxia.programs.rofi.enable = mkDefault true;
|
||||
ataraxia.programs.vscode.enable = mkDefault true;
|
||||
ataraxia.wayland.enable = mkDefault true;
|
||||
ataraxia.wayland.hyprland.enable = mkDefault true;
|
||||
|
Loading…
x
Reference in New Issue
Block a user