2023-05-17 17:10:18 +01:00
|
|
|
{...}: {
|
2023-05-15 11:12:17 +01:00
|
|
|
programs.wezterm = {
|
|
|
|
enable = true;
|
2023-05-16 13:05:26 +01:00
|
|
|
extraConfig = ''
|
2023-07-03 17:36:55 +01:00
|
|
|
-- Pull in the wezterm API
|
|
|
|
local wezterm = require 'wezterm'
|
2023-05-16 13:05:26 +01:00
|
|
|
|
2023-07-03 17:36:55 +01:00
|
|
|
-- This table will hold the configuration.
|
|
|
|
local config = {}
|
|
|
|
|
|
|
|
-- In newer versions of wezterm, use the config_builder which will
|
|
|
|
-- help provide clearer error messages
|
|
|
|
if wezterm.config_builder then
|
|
|
|
config = wezterm.config_builder()
|
|
|
|
end
|
|
|
|
|
|
|
|
-- This is where you actually apply your config choices
|
|
|
|
config.set_environment_variables = {
|
|
|
|
TERMINFO_DIRS = '/home/user/.nix-profile/share/terminfo',
|
|
|
|
WSLENV = 'TERMINFO_DIRS',
|
|
|
|
}
|
|
|
|
config.term = "wezterm"
|
|
|
|
config.audible_bell = "Disabled"
|
|
|
|
config.font_size = 14
|
|
|
|
config.window_background_opacity = 0.80
|
|
|
|
config.macos_window_background_blur = 20
|
|
|
|
config.color_scheme = "tokyonight_night"
|
|
|
|
config.hide_tab_bar_if_only_one_tab = true
|
|
|
|
config.hide_mouse_cursor_when_typing = true
|
|
|
|
config.window_padding = {
|
|
|
|
left = 10,
|
|
|
|
right = 10,
|
|
|
|
top = 10,
|
|
|
|
bottom = 10,
|
2023-05-16 13:05:26 +01:00
|
|
|
}
|
2023-07-03 17:36:55 +01:00
|
|
|
|
|
|
|
-- and finally, return the configuration to wezterm
|
|
|
|
return config
|
2023-05-16 13:05:26 +01:00
|
|
|
'';
|
2023-05-15 11:12:17 +01:00
|
|
|
};
|
|
|
|
}
|