From 4544b9f4a92ac610c6437e550aa0a9467d3c64d8 Mon Sep 17 00:00:00 2001 From: Franck Cuny Date: Thu, 2 May 2024 06:30:01 -0700 Subject: install and configure tmux for alacritty --- nix/profiles/home-manager/dev.nix | 13 ---------- nix/profiles/home-manager/shell.nix | 51 +++++++++++++++++++++++++++++++------ 2 files changed, 43 insertions(+), 21 deletions(-) (limited to 'nix/profiles/home-manager') diff --git a/nix/profiles/home-manager/dev.nix b/nix/profiles/home-manager/dev.nix index 30d7dca..49fe83a 100644 --- a/nix/profiles/home-manager/dev.nix +++ b/nix/profiles/home-manager/dev.nix @@ -32,19 +32,6 @@ in goPrivate = [ "github.rbx.com/*" "github.com/fcuny/*" ]; }; - programs = { - alacritty = { - enable = true; - settings = { - font = { - normal.family = "Monaspace Argon"; - bold = { style = "Bold"; }; - size = 16; - }; - }; - }; - }; - home.packages = with pkgs; [ # go go-tools 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; }; }; } -- cgit 1.4.1