2023-01-31 09:38:11 +01:00
|
|
|
{
|
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;
|
2023-05-16 16:20:11 +02:00
|
|
|
# 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-01-31 09:38:11 +01:00
|
|
|
};
|
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
|
|
|
|
'';
|
2023-01-31 09:38:11 +01:00
|
|
|
}
|