Personal Nix setup
0
fork

Configure Feed

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

Fix up wezterm build

+151 -7
+122 -1
flake.lock
··· 156 156 "type": "github" 157 157 } 158 158 }, 159 + "freetype2": { 160 + "flake": false, 161 + "locked": { 162 + "lastModified": 1687587065, 163 + "narHash": "sha256-+Fh+/k+NWL5Ow9sDLtp8Cv/8rLNA1oByQQCIQS/bysY=", 164 + "owner": "wez", 165 + "repo": "freetype2", 166 + "rev": "e4586d960f339cf75e2e0b34aee30a0ed8353c0d", 167 + "type": "github" 168 + }, 169 + "original": { 170 + "owner": "wez", 171 + "repo": "freetype2", 172 + "rev": "e4586d960f339cf75e2e0b34aee30a0ed8353c0d", 173 + "type": "github" 174 + } 175 + }, 159 176 "gitignore": { 160 177 "inputs": { 161 178 "nixpkgs": [ ··· 211 228 "type": "github" 212 229 } 213 230 }, 231 + "harfbuzz": { 232 + "flake": false, 233 + "locked": { 234 + "lastModified": 1711722720, 235 + "narHash": "sha256-GdxcAPx5QyniSHPAN1ih28AD9JLUPR0ItqW9JEsl3pU=", 236 + "owner": "harfbuzz", 237 + "repo": "harfbuzz", 238 + "rev": "63973005bc07aba599b47fdd4cf788647b601ccd", 239 + "type": "github" 240 + }, 241 + "original": { 242 + "owner": "harfbuzz", 243 + "ref": "8.4.0", 244 + "repo": "harfbuzz", 245 + "type": "github" 246 + } 247 + }, 214 248 "home-manager": { 215 249 "inputs": { 216 250 "nixpkgs": [ ··· 277 311 "original": { 278 312 "owner": "nix-community", 279 313 "repo": "lanzaboote", 314 + "type": "github" 315 + } 316 + }, 317 + "libpng": { 318 + "flake": false, 319 + "locked": { 320 + "lastModified": 1549245649, 321 + "narHash": "sha256-1+cRp0Ungme/OGfc9kGJbklYIWAFxk8Il1M+NV4KSgw=", 322 + "owner": "glennrp", 323 + "repo": "libpng", 324 + "rev": "8439534daa1d3a5705ba92e653eda9251246dd61", 325 + "type": "github" 326 + }, 327 + "original": { 328 + "owner": "glennrp", 329 + "repo": "libpng", 330 + "rev": "8439534daa1d3a5705ba92e653eda9251246dd61", 280 331 "type": "github" 281 332 } 282 333 }, ··· 673 724 "nixos-hardware": "nixos-hardware", 674 725 "nixpkgs": "nixpkgs", 675 726 "nvim-plugins": "nvim-plugins", 676 - "verdaccio": "verdaccio" 727 + "verdaccio": "verdaccio", 728 + "wezterm": "wezterm" 677 729 } 678 730 }, 679 731 "rust-overlay": { ··· 697 749 "type": "github" 698 750 } 699 751 }, 752 + "rust-overlay_2": { 753 + "inputs": { 754 + "nixpkgs": [ 755 + "wezterm", 756 + "nixpkgs" 757 + ] 758 + }, 759 + "locked": { 760 + "lastModified": 1726280639, 761 + "narHash": "sha256-YfLRPlFZWrT2oRLNAoqf7G3+NnUTDdlIJk6tmBU7kXM=", 762 + "owner": "oxalica", 763 + "repo": "rust-overlay", 764 + "rev": "e9f8641c92f26fd1e076e705edb12147c384171d", 765 + "type": "github" 766 + }, 767 + "original": { 768 + "owner": "oxalica", 769 + "repo": "rust-overlay", 770 + "type": "github" 771 + } 772 + }, 700 773 "systems": { 701 774 "locked": { 702 775 "lastModified": 1681028828, ··· 847 920 "type": "github" 848 921 } 849 922 }, 923 + "wezterm": { 924 + "inputs": { 925 + "flake-utils": [ 926 + "flake-utils" 927 + ], 928 + "freetype2": "freetype2", 929 + "harfbuzz": "harfbuzz", 930 + "libpng": "libpng", 931 + "nixpkgs": [ 932 + "nixpkgs" 933 + ], 934 + "rust-overlay": "rust-overlay_2", 935 + "zlib": "zlib" 936 + }, 937 + "locked": { 938 + "dir": "nix", 939 + "lastModified": 1726439563, 940 + "narHash": "sha256-6aDv7s8cUL/PG/RRIkDlydMFL8xii9Xhw1JXI9G96xs=", 941 + "owner": "wez", 942 + "repo": "wezterm", 943 + "rev": "2d0c5cddc91a9c59aef9a7667d90924e7cedd0ac", 944 + "type": "github" 945 + }, 946 + "original": { 947 + "dir": "nix", 948 + "owner": "wez", 949 + "ref": "main", 950 + "repo": "wezterm", 951 + "type": "github" 952 + } 953 + }, 850 954 "which-key-nvim": { 851 955 "flake": false, 852 956 "locked": { ··· 861 965 "owner": "folke", 862 966 "ref": "v1.6.0", 863 967 "repo": "which-key.nvim", 968 + "type": "github" 969 + } 970 + }, 971 + "zlib": { 972 + "flake": false, 973 + "locked": { 974 + "lastModified": 1484501380, 975 + "narHash": "sha256-j5b6aki1ztrzfCqu8y729sPar8GpyQWIrajdzpJC+ww=", 976 + "owner": "madler", 977 + "repo": "zlib", 978 + "rev": "cacf7f1d4e3d44d871b605da3b647f07d718623f", 979 + "type": "github" 980 + }, 981 + "original": { 982 + "owner": "madler", 983 + "ref": "v1.2.11", 984 + "repo": "zlib", 864 985 "type": "github" 865 986 } 866 987 }
+9
flake.nix
··· 51 51 }; 52 52 }; 53 53 54 + wezterm = { 55 + url = "github:wez/wezterm/main?dir=nix"; 56 + inputs = { 57 + nixpkgs.follows = "nixpkgs"; 58 + flake-utils.follows = "flake-utils"; 59 + }; 60 + }; 61 + 54 62 nvim-plugins = { 55 63 url = "github:kitten/system-nvim-plugins.nix"; 56 64 inputs = { ··· 70 78 inherit (inputs.language-servers.packages.${self.system}) 71 79 typescript-language-server 72 80 vscode-langservers-extracted; 81 + wezterm = (inputs.wezterm.packages.${self.system}).default; 73 82 }) 74 83 ]; 75 84 in {
+19 -4
home/apps/wezterm/default.nix
··· 1 - { pkgs, helpers, ... } @ inputs: 1 + { pkgs, helpers, lib, ... } @ inputs: 2 2 3 3 let 4 + inherit (pkgs) stdenv; 4 5 inherit (import ../../../lib/colors.nix inputs) colors mkLuaSyntax; 5 6 6 - pkg = pkgs.wezterm; 7 + wezterm = pkgs.wezterm.overrideAttrs (_: { 8 + preFixup = lib.optionalString stdenv.isLinux '' 9 + patchelf \ 10 + --add-needed "${pkgs.libGL}/lib/libEGL.so.1" \ 11 + --add-needed "${pkgs.vulkan-loader}/lib/libvulkan.so.1" \ 12 + $out/bin/wezterm-gui 13 + '' + lib.optionalString stdenv.isDarwin '' 14 + mkdir -p "$out/Applications" 15 + OUT_APP="$out/Applications/WezTerm.app" 16 + cp -r assets/macos/WezTerm.app "$OUT_APP" 17 + rm $OUT_APP/*.dylib 18 + cp -r assets/shell-integration/* "$OUT_APP" 19 + ln -s $out/bin/{wezterm,wezterm-mux-server,wezterm-gui,strip-ansi-escapes} "$OUT_APP" 20 + ''; 21 + }); 7 22 8 23 configStr = '' 9 24 local font_size = ${if helpers.isDarwin then "14" else "12"}; ··· 13 28 '' + (builtins.readFile ./init.lua); 14 29 15 30 shellIntegrationStr = '' 16 - source "${pkg}/etc/profile.d/wezterm.sh" 31 + source "${wezterm}/etc/profile.d/wezterm.sh" 17 32 ''; 18 33 in { 19 - home.packages = [pkg]; 34 + home.packages = [ wezterm ]; 20 35 xdg.configFile."wezterm/wezterm.lua".text = configStr; 21 36 programs.zsh.initExtra = shellIntegrationStr; 22 37 }
+1 -2
home/apps/wezterm/init.lua
··· 25 25 line_height = 1.1, 26 26 max_fps = 120, 27 27 28 - front_end = "WebGpu", 29 - enable_wayland = false, 28 + enable_wayland = true, 30 29 enable_scroll_bar = false, 31 30 enable_kitty_keyboard = true, 32 31 check_for_updates = false,