bat: use config instead of env variable (#353)
Replaces the usage of the BAT_THEME environment variable in favor of the built in config parameter `theme`.
This commit is contained in:
parent
0fe277a364
commit
43d23b1609
1 changed files with 9 additions and 6 deletions
|
|
@ -5,12 +5,15 @@
|
|||
config.lib.stylix.mkEnableTarget "Bat" config.programs.bat.enable;
|
||||
|
||||
config = lib.mkIf config.stylix.targets.bat.enable {
|
||||
# This theme is reused for yazi. Changes to the template
|
||||
# will need to be applied to modules/yazi/hm.nix
|
||||
programs.bat.themes."base16-stylix".src = config.lib.stylix.colors {
|
||||
template = ./base16-stylix.mustache;
|
||||
extension = ".tmTheme";
|
||||
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";
|
||||
};
|
||||
home.sessionVariables.BAT_THEME = "base16-stylix";
|
||||
};
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue