Personal Nix setup
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

Fix wezterm to zsh integration

+11 -3
+11 -3
home/wezterm/default.nix
··· 2 2 3 3 let 4 4 inherit (import ../../lib/colors.nix inputs) colors mkLuaSyntax; 5 - in { 6 - home.packages = [ pkgs.wezterm ]; 7 5 8 - xdg.configFile."wezterm/wezterm.lua".text = '' 6 + pkg = pkgs.wezterm; 7 + 8 + configStr = '' 9 9 local font_size = ${if helpers.isDarwin then "14" else "12"}; 10 10 local is_linux = ${if helpers.isLinux then "true" else "false"}; 11 11 local zsh_bin = "${pkgs.zsh}/bin/zsh"; 12 12 local colors = ${mkLuaSyntax colors}; 13 13 '' + (builtins.readFile ./init.lua); 14 + 15 + shellIntegrationStr = '' 16 + source "${pkg}/etc/profile.d/wezterm.sh" 17 + ''; 18 + in { 19 + home.packages = [pkg]; 20 + xdg.configFile."wezterm/wezterm.lua".text = configStr; 21 + programs.zsh.initExtra = shellIntegrationStr; 14 22 }