diff options
| author | Franck Cuny <franck@fcuny.net> | 2024-05-02 06:30:01 -0700 |
|---|---|---|
| committer | Franck Cuny <franck@fcuny.net> | 2024-05-02 06:30:01 -0700 |
| commit | 4544b9f4a92ac610c6437e550aa0a9467d3c64d8 (patch) | |
| tree | a90cc3706279c7247d160bb3d7110ceecc2f11a8 /nix/profiles/home-manager/shell.nix | |
| parent | configure fish and install alacritty (diff) | |
| download | infra-4544b9f4a92ac610c6437e550aa0a9467d3c64d8.tar.gz | |
install and configure tmux for alacritty
Diffstat (limited to '')
| -rw-r--r-- | nix/profiles/home-manager/shell.nix | 51 |
1 files changed, 43 insertions, 8 deletions
diff --git a/nix/profiles/home-manager/shell.nix b/nix/profiles/home-manager/shell.nix index 2c22880..936d34b 100644 --- a/nix/profiles/home-manager/shell.nix +++ b/nix/profiles/home-manager/shell.nix @@ -55,15 +55,50 @@ ASPELL_CONF = "conf ${config.xdg.configHome}/aspell/config;"; }; - programs = { - direnv = { - enable = true; - nix-direnv.enable = true; - enableZshIntegration = true; - config = { - global.disable_stdin = true; - global.strict_env = true; + programs.alacritty = { + enable = true; + settings = { + env = { + TERM = "xterm-256color"; }; + shell = { + program = "${pkgs.fish}/bin/fish"; + args = [ + "-c" + "tmux attach -t base || tmux new -s base" + ]; + }; + font = { + normal.family = "Monaspace Argon"; + bold = { style = "Bold"; }; + size = 18; + }; + }; + }; + + programs.tmux = { + enable = true; + terminal = "xterm-256color"; + escapeTime = 0; + aggressiveResize = true; + baseIndex = 1; + shortcut = "z"; + clock24 = true; + historyLimit = 50000; # Bigger buffer + extraConfig = '' + setw -g mouse on + + set-option -g renumber-windows on + ''; + }; + + programs.direnv = { + enable = true; + nix-direnv.enable = true; + enableZshIntegration = true; + config = { + global.disable_stdin = true; + global.strict_env = true; }; }; } |
