dotfiles/home/apps/wezterm.nix

23 lines
475 B
Nix
Raw Normal View History

{
2023-02-10 07:46:37 +01:00
config,
flakePath,
2023-05-15 01:01:10 +02:00
pkgs,
2023-02-10 07:46:37 +01:00
...
}: {
2023-05-15 01:01:10 +02:00
programs.wezterm = {
enable = true;
# package = pkgs.nur.repos.nekowinston.wezterm-nightly;
2023-05-15 01:01:10 +02:00
extraConfig = ''
package.path = "${flakePath}/home/apps/wezterm/?.lua;" .. package.path;
return require("config")
'';
};
2023-05-15 01:01:10 +02:00
programs.zsh.initExtra = ''
if [[ "$TERM_PROGRAM" == "WezTerm" ]]; then
TERM=wezterm
source ${config.programs.wezterm.package}/etc/profile.d/wezterm.sh
fi
'';
}