about summary refs log tree commit diff
path: root/nix/profiles/home-manager
diff options
context:
space:
mode:
Diffstat (limited to 'nix/profiles/home-manager')
-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;
     };
   };
 }