mirror of
https://github.com/nix-community/home-manager.git
synced 2026-06-05 21:02:51 +00:00
50 lines
1.1 KiB
Nix
50 lines
1.1 KiB
Nix
{
|
|
programs.wezterm = {
|
|
enable = true;
|
|
settings = {
|
|
font_size = 13;
|
|
};
|
|
extraConfig = ''
|
|
return {
|
|
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()
|
|
return {
|
|
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}
|
|
'';
|
|
}
|