WIP: home-manager modules and install tooling (in progress, unreviewed)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01J1cugeLkfFLZMpiztQ8TyN
This commit is contained in:
30 files changed
+2619
No files matched your search
@@ -0,0 +1,56 @@
|
||||
# WezTerm terminal (SUPER+Return in Hyprland).
|
||||
{
|
||||
config,
|
||||
lib,
|
||||
pkgs,
|
||||
...
|
||||
}:
|
||||
let
|
||||
cfg = config.my.home.wezterm;
|
||||
in
|
||||
{
|
||||
options.my.home.wezterm.enable = lib.mkEnableOption "WezTerm terminal";
|
||||
|
||||
config = lib.mkIf cfg.enable {
|
||||
programs.wezterm = {
|
||||
enable = true;
|
||||
|
||||
extraConfig = ''
|
||||
local act = wezterm.action
|
||||
local config = wezterm.config_builder()
|
||||
|
||||
config.color_scheme = 'Catppuccin Mocha'
|
||||
config.font = wezterm.font_with_fallback { 'JetBrainsMono Nerd Font', 'Noto Color Emoji' }
|
||||
config.font_size = 12.0
|
||||
|
||||
-- Wayland-native, no client-side titlebar (Hyprland draws the borders).
|
||||
config.enable_wayland = true
|
||||
config.window_decorations = 'NONE'
|
||||
config.window_padding = { left = 8, right = 8, top = 8, bottom = 8 }
|
||||
|
||||
-- A tab bar only when there is more than one tab.
|
||||
config.hide_tab_bar_if_only_one_tab = true
|
||||
config.use_fancy_tab_bar = false
|
||||
|
||||
config.scrollback_lines = 20000
|
||||
config.audible_bell = 'Disabled'
|
||||
config.check_for_updates = false
|
||||
|
||||
-- Hyprland owns SUPER and ALT+Tab, so splits live on CTRL+SHIFT.
|
||||
-- phys: keys are layout independent and work with the ru layout.
|
||||
config.keys = {
|
||||
{ key = 'phys:D', mods = 'CTRL|SHIFT', action = act.SplitHorizontal { domain = 'CurrentPaneDomain' } },
|
||||
{ key = 'phys:E', mods = 'CTRL|SHIFT', action = act.SplitVertical { domain = 'CurrentPaneDomain' } },
|
||||
}
|
||||
|
||||
return config
|
||||
'';
|
||||
};
|
||||
|
||||
# The font the config asks for; the emoji font is a fallback.
|
||||
home.packages = with pkgs; [
|
||||
nerd-fonts.jetbrains-mono
|
||||
noto-fonts-color-emoji
|
||||
];
|
||||
};
|
||||
}
|
||||
Reference in new issue
Block a user