Add config option to make terminal the default
This commit is contained in:
@ -25,6 +25,7 @@ in
|
||||
{
|
||||
options.modules.wezterm = {
|
||||
enable = lib.mkOption { default = false; };
|
||||
mkDefault = lib.mkOption { default = true; };
|
||||
};
|
||||
|
||||
config = lib.mkIf cfg.enable {
|
||||
@ -35,7 +36,7 @@ in
|
||||
local config = {}
|
||||
|
||||
config.color_scheme = 'Catppuccin Mocha'
|
||||
-- config.font = wezterm.font 'DejaVu Sans'
|
||||
-- config.font = wezterm.font 'JetBrains Mono'
|
||||
-- config.font_size = 12.0
|
||||
config.hide_tab_bar_if_only_one_tab = true
|
||||
config.audible_bell = 'Disabled'
|
||||
@ -47,7 +48,7 @@ in
|
||||
'';
|
||||
};
|
||||
|
||||
home.sessionVariables.TERMINAL = "wezterm-start-here";
|
||||
home.sessionVariables.TERMINAL = lib.mkIf cfg.mkDefault "wezterm-start-here";
|
||||
|
||||
# Otherwise wezterm does not start in directory of parent process
|
||||
home.packages = [
|
||||
|
Reference in New Issue
Block a user