Skip to content

Commit

Permalink
Apply suggestions from code review (the commit will be squashed locally)
Browse files Browse the repository at this point in the history
Co-authored-by: Isabel <[email protected]>
  • Loading branch information
taranarmo and isabelroses authored Dec 30, 2024
1 parent b0231f8 commit 989e1fa
Showing 1 changed file with 8 additions and 12 deletions.
20 changes: 8 additions & 12 deletions modules/home-manager/wezterm.nix
Original file line number Diff line number Diff line change
Expand Up @@ -8,21 +8,17 @@ in
{
options.catppuccin.wezterm = catppuccinLib.mkCatppuccinOption { name = "wezterm"; };

imports = catppuccinLib.mkRenamedCatppuccinOptions {
from = [
"programs"
"wezterm"
"catppuccin"
];
to = "wezterm";
};

config = lib.mkIf cfg.enable {
programs.wezterm = {
extraConfig = ''
return {
color_scheme = "Catppuccin ${catppuccinLib.mkUpper cfg.flavor}",
}
colorSchemes = lib.importTOML "${sources.wezterm}/catppuccin-${cfg.flavor}.toml";
extraConfig = lib.mkBefore ''
local config = {}
if wezterm.c_builder then
config = wezterm.config_builder()
end
require("${sources.wezterm}/init.lua").apply_to_config(config)
'';
};
};
Expand Down

0 comments on commit 989e1fa

Please sign in to comment.