From 62d18067fd16b4a7238f7e0072ab0de71e3a8fcb Mon Sep 17 00:00:00 2001 From: notohh Date: Tue, 14 Nov 2023 21:40:30 -0500 Subject: [PATCH] wezterm: switch config to native lua --- home/wezterm/config.lua | 19 +++++++++++++++++++ home/wezterm/default.nix | 27 +-------------------------- 2 files changed, 20 insertions(+), 26 deletions(-) create mode 100644 home/wezterm/config.lua diff --git a/home/wezterm/config.lua b/home/wezterm/config.lua new file mode 100644 index 0000000..134179b --- /dev/null +++ b/home/wezterm/config.lua @@ -0,0 +1,19 @@ +local wezterm = require 'wezterm' + +return { + front_end = "WebGpu", + webgpu_preferred_adapter = { + backend = "Vulkan", + device_type = "DiscreteGpu", + name = "NVIDIA GeForce GTX 1070 Ti" + }, + enable_wayland = false, + font = wezterm.font 'Comic Code Ligatures', + font_size = 12.0, + window_background_opacity = 0.6, + text_background_opacity = 1.0, + enable_tab_bar = false, + color_scheme = 'Catppuccin Mocha', + + window_padding = {top = 0, bottom = 0, left = 0, right = 0} +} \ No newline at end of file diff --git a/home/wezterm/default.nix b/home/wezterm/default.nix index e976593..e0a8a78 100644 --- a/home/wezterm/default.nix +++ b/home/wezterm/default.nix @@ -1,31 +1,6 @@ _: { programs.wezterm = { enable = true; - extraConfig = '' - local wezterm = require 'wezterm' - - return { - front_end = "WebGpu", - webgpu_preferred_adapter = { - backend="Vulkan", - device_type="DiscreteGpu", - name="NVIDIA GeForce GTX 1070 Ti" - }, - enable_wayland = false, - font = wezterm.font 'Comic Code Ligatures', - font_size = 12.0, - window_background_opacity = 0.6, - text_background_opacity = 1.0, - enable_tab_bar = false, - color_scheme = 'Catppuccin Mocha', - - window_padding = { - top = 0, - bottom = 0, - left = 0, - right = 0, - } - } - ''; + extraConfig = builtins.readFile ./config.lua; }; }