feat: wezterm font size and file consistency
This commit is contained in:
@@ -17,6 +17,7 @@
|
||||
|
||||
wezterm.enable = true;
|
||||
wezterm.integration.zsh = true;
|
||||
wezterm.fontSize = 10;
|
||||
wezterm.defaultProg = [
|
||||
"zsh"
|
||||
"--login"
|
||||
|
||||
@@ -4,21 +4,25 @@ let
|
||||
cfg = config.wezterm;
|
||||
in
|
||||
{
|
||||
options.wezterm = {
|
||||
enable = lib.mkEnableOption "Enable Wezterm";
|
||||
options.wezterm = with lib; with lib.types; {
|
||||
enable = mkEnableOption "Enable Wezterm";
|
||||
integration = {
|
||||
zsh = lib.mkEnableOption "Enable Zsh Integration";
|
||||
zsh = mkEnableOption "Enable Zsh Integration";
|
||||
};
|
||||
colorScheme = lib.mkOption {
|
||||
type = lib.types.str;
|
||||
colorScheme = mkOption {
|
||||
type = str;
|
||||
default = "system";
|
||||
};
|
||||
defaultProg = lib.mkOption {
|
||||
defaultProg = mkOption {
|
||||
default = [ ];
|
||||
};
|
||||
font = lib.mkOption {
|
||||
font = mkOption {
|
||||
default = "Fira Code";
|
||||
type = lib.types.str;
|
||||
type = str;
|
||||
};
|
||||
fontSize = mkOption {
|
||||
default = 12;
|
||||
type = number;
|
||||
};
|
||||
};
|
||||
config = lib.mkIf cfg.enable {
|
||||
@@ -31,6 +35,7 @@ in
|
||||
color_scheme = "${cfg.colorScheme}",
|
||||
default_prog = { ${lib.concatMapStrings (x: "'" + x + "',") cfg.defaultProg} },
|
||||
font = wezterm.font("${cfg.font}"),
|
||||
font_size = ${toString cfg.fontSize},
|
||||
enable_wayland = false, -- TEMPORALLY FIX (see wez/wezterm#4483)
|
||||
}
|
||||
'';
|
||||
|
||||
Reference in New Issue
Block a user