From c9d8d353ba20c37c65c40d1f6345499af0eef0e4 Mon Sep 17 00:00:00 2001 From: "Alexandre Cavalheiro S. Tiago da Silva" Date: Wed, 26 Jun 2024 02:11:25 -0300 Subject: [PATCH] hm: move wezterm lua config to the nix file --- programs/wezterm/default.nix | 21 ++++++++++++++++++++- programs/wezterm/wezterm.lua | 17 ----------------- 2 files changed, 20 insertions(+), 18 deletions(-) delete mode 100644 programs/wezterm/wezterm.lua diff --git a/programs/wezterm/default.nix b/programs/wezterm/default.nix index 66a1d5c..599ccfa 100644 --- a/programs/wezterm/default.nix +++ b/programs/wezterm/default.nix @@ -3,6 +3,25 @@ { programs.wezterm = { enable = true; - extraConfig = builtins.readFile ./wezterm.lua; + extraConfig = # lua + '' + local wezterm = require("wezterm") + + return { + color_scheme = "Catppuccin Frappe", + enable_wayland = false, -- Unfortunately broken on Hyprland, AGAIN + font = wezterm.font("FantasqueSansM Nerd Font"), + font_size = 13, + hide_tab_bar_if_only_one_tab = true, + hide_mouse_cursor_when_typing = false, + window_background_opacity = 0.88, + window_padding = { + left = 18, + right = 18, + top = 18, + bottom = 18, + }, + } + ''; }; } diff --git a/programs/wezterm/wezterm.lua b/programs/wezterm/wezterm.lua deleted file mode 100644 index 92ee0d1..0000000 --- a/programs/wezterm/wezterm.lua +++ /dev/null @@ -1,17 +0,0 @@ -local wezterm = require("wezterm") - -return { - color_scheme = "Catppuccin Frappe", - enable_wayland = false, -- Unfortunately broken on Hyprland, AGAIN - font = wezterm.font("FantasqueSansM Nerd Font"), - font_size = 13, - hide_tab_bar_if_only_one_tab = true, - hide_mouse_cursor_when_typing = false, - window_background_opacity = 0.88, - window_padding = { - left = 18, - right = 18, - top = 18, - bottom = 18, - }, -}