Files
home-manager/tests/modules/programs/wezterm/settings-extra-config-direct.nix
2026-04-13 22:02:40 -05:00

46 lines
1.0 KiB
Nix

{
programs.wezterm = {
enable = true;
settings = {
font_size = 13;
};
extraConfig = ''
config.color_scheme = "Tomorrow Night"
'';
};
nmt.script =
let
expectedConfig = builtins.toFile "wezterm.lua" ''
-- Generated by Home Manager.
-- See https://wezfurlong.org/wezterm/
local wezterm = require 'wezterm'
local config = wezterm.config_builder and wezterm.config_builder() or {}
local hm_config = {
["font_size"] = 13
}
for k, v in pairs(hm_config) do
config[k] = v
end
local _hm_extra = (function()
config.color_scheme = "Tomorrow Night"
end)()
if type(_hm_extra) == "table" then
for k, v in pairs(_hm_extra) do
config[k] = v
end
end
return config
'';
in
''
assertFileExists home-files/.config/wezterm/wezterm.lua
assertFileContent home-files/.config/wezterm/wezterm.lua ${expectedConfig}
'';
}