mirror of
https://github.com/danth/stylix
synced 2024-09-20 14:21:56 +00:00
43d23b1609
Replaces the usage of the BAT_THEME environment variable in favor of the built in config parameter `theme`.
19 lines
537 B
Nix
19 lines
537 B
Nix
{ pkgs, config, lib, ... }:
|
|
|
|
{
|
|
options.stylix.targets.bat.enable =
|
|
config.lib.stylix.mkEnableTarget "Bat" config.programs.bat.enable;
|
|
|
|
config = lib.mkIf config.stylix.targets.bat.enable {
|
|
programs.bat = {
|
|
# This theme is reused for yazi. Changes to the template
|
|
# will need to be applied to modules/yazi/hm.nix
|
|
themes."base16-stylix".src = config.lib.stylix.colors {
|
|
template = ./base16-stylix.mustache;
|
|
extension = ".tmTheme";
|
|
};
|
|
|
|
config.theme = "base16-stylix";
|
|
};
|
|
};
|
|
}
|