From 657b55d20abdce058779311854399fd1a6b40d77 Mon Sep 17 00:00:00 2001 From: Sakooooo <78461130+Sakooooo@users.noreply.github.com> Date: Sun, 7 Jul 2024 13:45:37 +0400 Subject: [PATCH] add wezterm to homemanager --- config/wezterm/wezterm.lua | 24 ++++++++++++++++++++++++ modules/desktop/wezterm/default.nix | 5 +++++ 2 files changed, 29 insertions(+) create mode 100644 config/wezterm/wezterm.lua diff --git a/config/wezterm/wezterm.lua b/config/wezterm/wezterm.lua new file mode 100644 index 00000000..521d32df --- /dev/null +++ b/config/wezterm/wezterm.lua @@ -0,0 +1,24 @@ +-- Pull in the wezterm API +local wezterm = require("wezterm") + +-- This will hold the configuration. +local config = wezterm.config_builder() + +-- This is where you actually apply your config choices +config.enable_tab_bar = false + +config.window_frame = { + + font = wezterm.font({ family = "JetBrainsMono NF" }), + font_size = 12.0, +} + +config.window_padding = { + left = 20, + right = 20, + top = 20, + bottom = 20, +} + +-- and finally, return the configuration to wezterm +return config diff --git a/modules/desktop/wezterm/default.nix b/modules/desktop/wezterm/default.nix index 2d6a7ba8..5bc4a0ca 100644 --- a/modules/desktop/wezterm/default.nix +++ b/modules/desktop/wezterm/default.nix @@ -16,5 +16,10 @@ in { users.users.sako.packages = with pkgs; [ wezterm ]; + + home.file.".wezterm.lua" = { + enable = true; + source = ../../../config/wezterm/wezterm.lua; + }; }; }