chore(nix): Clean up rofi module

This commit is contained in:
Donovan Glover 2024-04-03 05:52:10 -04:00
parent e82b8d40f9
commit 942785cf5b
No known key found for this signature in database
GPG Key ID: EA7408A77AE1BE65

View File

@ -1,11 +1,17 @@
{ config, lib, pkgs, ... }: { config, lib, pkgs, ... }:
let
inherit (pkgs) rofi-wayland;
inherit (lib) mkForce;
inherit (config.lib.formats.rasi) mkLiteral;
inherit (config.lib.stylix.colors) base00 base05;
in
{ {
programs.rofi = { programs.rofi = {
enable = true; enable = true;
cycle = false; cycle = false;
package = pkgs.rofi-wayland; package = rofi-wayland;
extraConfig = { extraConfig = {
modi = "drun,filebrowser"; modi = "drun,filebrowser";
@ -25,7 +31,7 @@
}; };
# Based on Newman Sánchez's Launchpad theme <https://github.com/newmanls/rofi-themes-collection> # Based on Newman Sánchez's Launchpad theme <https://github.com/newmanls/rofi-themes-collection>
theme = let inherit (config.lib.formats.rasi) mkLiteral; in with config.lib.stylix.colors; lib.mkForce { theme = mkForce {
"*" = { "*" = {
font = "Noto Sans CJK JP Bold 12"; font = "Noto Sans CJK JP Bold 12";
background-color = mkLiteral "transparent"; background-color = mkLiteral "transparent";