diff --git a/modules/home/applications/rofi.nix b/modules/home/applications/rofi.nix new file mode 100644 index 0000000..e166b2b --- /dev/null +++ b/modules/home/applications/rofi.nix @@ -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}"; + }; + }; +} diff --git a/modules/home/roles/default.nix b/modules/home/roles/default.nix index 815100b..3365dda 100644 --- a/modules/home/roles/default.nix +++ b/modules/home/roles/default.nix @@ -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;