aboutsummaryrefslogtreecommitdiff
path: root/nix
diff options
context:
space:
mode:
authorFranck Cuny <franck@fcuny.net>2025-05-01 09:33:11 -0700
committerFranck Cuny <franck@fcuny.net>2025-05-01 09:33:11 -0700
commitf227a791f6c691cb4196d935f8bbfd1a0c8a086f (patch)
treeff15cfb323e4657b3bca2981cfbde391cc50e183 /nix
parentdrop homebrew (diff)
downloadinfra-f227a791f6c691cb4196d935f8bbfd1a0c8a086f.tar.gz
restore wezterm
Diffstat (limited to 'nix')
-rw-r--r--nix/users/fcuny/dev.nix61
1 files changed, 61 insertions, 0 deletions
diff --git a/nix/users/fcuny/dev.nix b/nix/users/fcuny/dev.nix
index 3fa97da..b8fe282 100644
--- a/nix/users/fcuny/dev.nix
+++ b/nix/users/fcuny/dev.nix
@@ -31,6 +31,67 @@
rustup
];
+ # https://wezterm.org/config/lua/general.html
+ programs.wezterm = {
+ enable = true;
+ extraConfig = ''
+ local config = {}
+ if wezterm.config_builder then
+ config = wezterm.config_builder()
+ end
+
+ config.color_scheme = 'Catppuccin Mocha'
+
+ config.scrollback_lines = 10000
+
+ config.font = wezterm.font("Source Code Pro", {
+ weight = "Light",
+ })
+ config.font_size = 16.0
+
+ config.window_padding = {
+ left = 10,
+ right = 10,
+ top = 10,
+ bottom = 10
+ }
+
+ local act = wezterm.action
+ config.keys = {
+ -- Override CMD+t to always start new tabs in the home directory.
+ { key = 't', mods = 'SUPER', action = act.SpawnCommandInNewTab { cwd = wezterm.home_dir } },
+ }
+
+ config.audible_bell = "Disabled"
+ config.visual_bell = {
+ fade_in_duration_ms = 75,
+ fade_out_duration_ms = 75,
+ target = 'CursorColor',
+ };
+
+ config.hide_tab_bar_if_only_one_tab = true
+ config.use_fancy_tab_bar = true
+ config.tab_bar_at_bottom = true
+ config.inactive_pane_hsb = {
+ saturation = 0.0,
+ brightness = 1.0,
+ };
+
+ config.term = "xterm-256color"
+
+ config.front_end = "WebGpu"
+
+ -- Set initial size
+ config.initial_cols = 120
+ config.initial_rows = 36
+
+ -- Since we're managing the binary with nix, no need for this
+ config.check_for_updates = false
+
+ return config
+ '';
+ };
+
programs.go = {
enable = true;
goPath = ".local/share/pkg.go";