about summary refs log tree commit diff
path: root/nix
diff options
context:
space:
mode:
authorFranck Cuny <franck@fcuny.net>2024-11-29 09:47:56 -0800
committerFranck Cuny <franck@fcuny.net>2024-11-29 09:47:56 -0800
commite674fc18fc16bb7663724cf6f0840ffb7fbbbab6 (patch)
treef58afa6267aea43247a64abb46089569169a29c1 /nix
parentfix what I broke (diff)
downloadworld-e674fc18fc16bb7663724cf6f0840ffb7fbbbab6.tar.gz
install a few more tools
Diffstat (limited to 'nix')
-rw-r--r--nix/profiles/home-manager/shell.nix62
1 files changed, 39 insertions, 23 deletions
diff --git a/nix/profiles/home-manager/shell.nix b/nix/profiles/home-manager/shell.nix
index d90e125..cd37929 100644
--- a/nix/profiles/home-manager/shell.nix
+++ b/nix/profiles/home-manager/shell.nix
@@ -4,15 +4,23 @@
     # shell utils
     coreutils
     direnv
+    dust
+    procs
     ripgrep
     tree
     wget
 
+    # network
+    bandwhich
+
     # data manipulation
     jless
     jq
     yq
 
+    # encryption
+    age
+
     # media
     # mpv - TODO: this is currently broken
     ffmpeg
@@ -32,27 +40,6 @@
     nil # nix lsp
   ];
 
-  programs.tmux = {
-    enable = true;
-    terminal = "xterm-256color";
-    escapeTime = 0;
-    aggressiveResize = true;
-    baseIndex = 1;
-    shortcut = "z";
-    clock24 = true;
-    shell = "${pkgs.fish}/bin/fish";
-    historyLimit = 50000; # Bigger buffer
-    extraConfig = ''
-      setw -g mouse on
-
-      # Avoid date/time taking up space
-      set -g status-right ""
-      set -g status-right-length 0
-
-      set-option -g renumber-windows on
-    '';
-  };
-
   xdg = {
     configFile = {
       "aspell/config".text = ''
@@ -80,8 +67,21 @@
   # an alternative to ls
   programs.eza = {
     enable = true;
-    icons = true;
-    extraOptions = [ "--group-directories-first" "--no-quotes" "--git-ignore" ];
+    icons = false;
+    enableFishIntegration = false;
+    extraOptions = [
+      "--group-directories-first"
+      "--no-quotes"
+      "--git-ignore"
+      "--icons=never"
+    ];
+  };
+
+  # an alternative to find
+  programs.fd = {
+    enable = true;
+    hidden = true;
+    ignores = [ ".git/" ];
   };
 
   programs.direnv = {
@@ -93,4 +93,20 @@
       global.strict_env = true;
     };
   };
+
+  programs.fish = {
+    enable = true;
+    interactiveShellInit = ''
+      set fish_greeting ""
+    '';
+
+    shellAbbrs = { ncg = "nix-collect-garbage -d"; };
+    shellAliases = {
+      c = "clear";
+      ls = "eza -l -L=1 --git --color=always --group-directories-first";
+      la = "eza -la --git --color=always --group-directories-first";
+      ll = "eza -la -L=1 --git --color=always --group-directories-first";
+      lt = "eza -aT -L=2 --git --color=always --group-directories-first";
+    };
+  };
 }