diff options
Diffstat (limited to 'modules/wezterm.nix')
| -rw-r--r-- | modules/wezterm.nix | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/modules/wezterm.nix b/modules/wezterm.nix new file mode 100644 index 0000000..66da93b --- /dev/null +++ b/modules/wezterm.nix @@ -0,0 +1,26 @@ +{ config, lib, pkgs, ... }: + +let + cfg = config.wezterm; +in { + options.wezterm.enable = lib.mkEnableOption "Enable wezterm and setup"; + config = lib.mkIf cfg.enable { + programs.wezterm = { + enable = true; + enableZshIntegration = true; + extraConfig = '' + local wezterm = require 'wezterm' + + local config = wezterm.config_builder() + + config.use_fancy_tab_bar = true + config.hide_tab_bar_if_only_one_tab = true + config.window_background_opacity = 0.8 + config.exit_behavior = 'Hold' + config.exit_behavior_messaging = 'None' + + return config + ''; + }; + }; +} |
