blob: ca19e1ab5e65a071f8935d94a9b30132b206d210 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
|
{ config, lib, pkgs, ... }:
{
options.wezterm.enable = lib.mkEnableOption "Enable wezterm and setup";
config = lib.mkIf config.wezterm.enable {
home.packages = with pkgs; [
(nerdfonts.override { fonts = [ "SpaceMono" "IBMPlexMono" "Terminus" ]; })
];
programs.wezterm = {
enable = true;
enableZshIntegration = true;
extraConfig = ''
local wezterm = require 'wezterm'
local config = wezterm.config_builder()
config.font = wezterm.font "SpaceMono Nerd Font Mono"
config.font_size = 10
config.use_fancy_tab_bar = true
config.hide_tab_bar_if_only_one_tab = true
config.window_background_opacity = 0.9
config.exit_behavior = 'Close'
config.exit_behavior_messaging = 'None'
return config
'';
};
};
}
|