Skip to content

Commit

Permalink
feat(home-manager): add support for wezterm
Browse files Browse the repository at this point in the history
  • Loading branch information
taranarmo committed Dec 30, 2024
1 parent c56711a commit b72c8b5
Show file tree
Hide file tree
Showing 4 changed files with 28 additions and 1 deletion.
1 change: 1 addition & 0 deletions modules/home-manager/all-modules.nix
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@
./tofi.nix
./obs.nix
./waybar.nix
./wezterm.nix
./yazi.nix
./zathura.nix
./zed-editor.nix
Expand Down
25 changes: 25 additions & 0 deletions modules/home-manager/wezterm.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
{ catppuccinLib }:
{ config, lib, ... }:

let
cfg = config.catppuccin.wezterm;
in

{
options.catppuccin.wezterm = catppuccinLib.mkCatppuccinOption { name = "wezterm"; };


config = lib.mkIf cfg.enable {
programs.wezterm = {
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)
'';
};
};
}
1 change: 1 addition & 0 deletions modules/tests/home.nix
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,7 @@
tofi.enable = true;
obs-studio.enable = true;
waybar.enable = true;
wezterm.enable = true;
yazi.enable = true;
zathura.enable = true;
zed-editor.enable = true;
Expand Down
2 changes: 1 addition & 1 deletion pkgs/sources.json
Original file line number Diff line number Diff line change
Expand Up @@ -179,4 +179,4 @@
"hash": "sha256-l6tztApzYpQ2/CiKuLBf8vI2imM6vPJuFdNDSEi7T/o=",
"rev": "7926c3d3e17d26b3779851a2255b95ee650bd928"
}
}
}

0 comments on commit b72c8b5

Please sign in to comment.