fork/home-manager
git clone https://git.julia.blue/fork/home-manager
f92a54fe
master
1{ ...} : 2 3{ 4programs . wezterm = { 5enable = true ; 6extraConfig = '' 7return { 8font = wezterm.font("JetBrains Mono"), 9font_size = 16.0, 10color_scheme = "Tomorrow Night", 11hide_tab_bar_if_only_one_tab = true, 12default_prog = { "zsh", "--login", "-c", "tmux attach -t dev || tmux new -s dev" }, 13keys = { 14{key="n", mods="SHIFT|CTRL", action="ToggleFullScreen"}, 15} 16} 17'' ; 18colorSchemes . test = { 19ansi = [ 20"#222222" 21"#D14949" 22"#48874F" 23"#AFA75A" 24"#599797" 25"#8F6089" 26"#5C9FA8" 27"#8C8C8C" 28]; 29brights = [ 30"#444444" 31"#FF6D6D" 32"#89FF95" 33"#FFF484" 34"#97DDFF" 35"#FDAAF2" 36"#85F5DA" 37"#E9E9E9" 38]; 39background = "#1B1B1B" ; 40cursor_bg = "#BEAF8A" ; 41cursor_border = "#BEAF8A" ; 42cursor_fg = "#1B1B1B" ; 43foreground = "#BEAF8A" ; 44selection_bg = "#444444" ; 45selection_fg = "#E9E9E9" ; 46}; 47}; 48 49test . stubs . wezterm = { }; 50 51nmt . script = let 52expectedConfig = builtins . toFile "wezterm.lua" '' 53-- Generated by Home Manager. 54-- See https://wezfurlong.org/wezterm/ 55 56local wezterm = require 'wezterm'; 57 58return { 59font = wezterm.font("JetBrains Mono"), 60font_size = 16.0, 61color_scheme = "Tomorrow Night", 62hide_tab_bar_if_only_one_tab = true, 63default_prog = { "zsh", "--login", "-c", "tmux attach -t dev || tmux new -s dev" }, 64keys = { 65{key="n", mods="SHIFT|CTRL", action="ToggleFullScreen"}, 66} 67} 68 69'' ; 70expectedColorScheme = builtins . toFile "test.toml" '' 71[colors] 72ansi = ["#222222", "#D14949", "#48874F", "#AFA75A", "#599797", "#8F6089", "#5C9FA8", "#8C8C8C"] 73background = "#1B1B1B" 74brights = ["#444444", "#FF6D6D", "#89FF95", "#FFF484", "#97DDFF", "#FDAAF2", "#85F5DA", "#E9E9E9"] 75cursor_bg = "#BEAF8A" 76cursor_border = "#BEAF8A" 77cursor_fg = "#1B1B1B" 78foreground = "#BEAF8A" 79selection_bg = "#444444" 80selection_fg = "#E9E9E9" 81'' ; 82in '' 83assertFileExists home-files/.config/wezterm/wezterm.lua 84assertFileContent home-files/.config/wezterm/wezterm.lua ${ expectedConfig } 85assertFileExists home-files/.config/wezterm/colors/test.toml 86assertFileContent home-files/.config/wezterm/colors/test.toml ${ expectedColorScheme } 87'' ; 88}