about summary refs log tree commit diff
path: root/nix
diff options
context:
space:
mode:
authorFranck Cuny <franck@fcuny.net>2024-05-02 06:30:01 -0700
committerFranck Cuny <franck@fcuny.net>2024-05-02 06:30:01 -0700
commit4544b9f4a92ac610c6437e550aa0a9467d3c64d8 (patch)
treea90cc3706279c7247d160bb3d7110ceecc2f11a8 /nix
parentconfigure fish and install alacritty (diff)
downloadworld-4544b9f4a92ac610c6437e550aa0a9467d3c64d8.tar.gz
install and configure tmux for alacritty
Diffstat (limited to 'nix')
-rw-r--r--nix/profiles/home-manager/dev.nix13
-rw-r--r--nix/profiles/home-manager/shell.nix51
2 files changed, 43 insertions, 21 deletions
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;
     };
   };
 }