Anthony Rodriguez
32971e91bf
I decided to refactor how the theme module works. The idea is, that I wanted originally a module that I could give a base16 scheme name to, and use that globally in my config. However, scheme only took the base16 scheme name without any checks, which was pretty bad. I ended up creating a new option, schemeName, that scheme is computed from. It then makes the whole configuration cleaner, and avoids long inputs interpolations with the scheme name.
31 lines
689 B
Nix
31 lines
689 B
Nix
{
|
|
inputs,
|
|
osConfig,
|
|
lib,
|
|
pkgs,
|
|
...
|
|
}: {
|
|
programs.fuzzel = {
|
|
enable = true;
|
|
settings = {
|
|
main = {
|
|
terminal = lib.getExe pkgs.foot;
|
|
use-bold = true;
|
|
dpi-aware = "auto";
|
|
font = "monospace:size=14";
|
|
};
|
|
colors = let
|
|
inherit (osConfig.theme.scheme) palette;
|
|
in {
|
|
background = "${palette.base00}ff";
|
|
text = "${palette.base05}ff";
|
|
input = "${palette.base05}ff";
|
|
selection = "${palette.base02}ff";
|
|
selection-text = "${palette.base07}ff";
|
|
selection-match = "${palette.base0D}ff";
|
|
border = "${palette.base0E}ff";
|
|
};
|
|
border.width = 5;
|
|
};
|
|
};
|
|
}
|