My nixos configuration
2
fork

Configure Feed

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

Merge pull request #1129 from NobbZ/wezterm-config

do wezterm via HM

authored by nobbz.dev and committed by

GitHub 6407372a fdf4ef4d

+55
+1
home/modules/default.nix
··· 12 12 "programs/openshift" = ./programs/openshift; 13 13 "programs/p10k" = ./programs/p10k; 14 14 "programs/rbw" = ./programs/rbw; 15 + "programs/wezterm" = ./programs/wezterm; 15 16 16 17 "services/insync" = ./services/insync; 17 18 "services/restic" = ./services/restic;
+54
home/modules/programs/wezterm/default.nix
··· 1 + _: { 2 + config, 3 + pkgs, 4 + ... 5 + }: { 6 + home.packages = [pkgs.wezterm]; 7 + 8 + xdg.configFile."wezterm/wezterm.lua".text = 9 + # lua 10 + '' 11 + -- Pull in the wezterm API 12 + local wezterm = require 'wezterm' 13 + 14 + -- This table will hold the configuration. 15 + local config = {} 16 + 17 + -- In newer versions of wezterm, use the config_builder which will 18 + -- help provide clearer error messages 19 + if wezterm.config_builder then 20 + config = wezterm.config_builder() 21 + end 22 + 23 + -- This is where you actually apply your config choices 24 + 25 + -- bells 26 + config.audible_bell = "Disabled" 27 + config.visual_bell = { 28 + fade_in_function = "EaseIn", 29 + fade_in_duration_ms = 150, 30 + fade_out_function = "EaseOut", 31 + fade_out_duration_ms = 150, 32 + } 33 + 34 + -- For example, changing the color scheme: 35 + config.color_scheme = "Catppuccin Mocha" 36 + 37 + -- disable ligatures 38 + config.harfbuzz_features = { 'calt=0', 'clig=0', 'liga=0' } 39 + 40 + -- set the font 41 + config.font_dirs = { '${pkgs.departure-mono}/share/fonts/otf' } 42 + config.font_size = 11.0 * 1.25 43 + config.font = wezterm.font("Departure Mono") 44 + 45 + -- setting up keybindings 46 + config.keys = { 47 + -- The default is `C-Z` (so also pressing SHIFT), I prefer to not have SHIFT pressed 48 + { key = 'z', mods = 'CTRL', action = wezterm.action.TogglePaneZoomState, }, 49 + } 50 + 51 + -- and finally, return the configuration to wezterm 52 + return config 53 + ''; 54 + }