Commit b8ba30222c63

Vincent Demeester <vincent@sbr.pm>
2026-02-13 15:24:40
feat(home): added walk terminal file manager to desktop systems
Added walk package and configured lk function for desktop systems. Enabled icons, trash-put for safe deletion, and file opener configuration for common file types (vim for code, glow for markdown, less for text).
1 parent 386f52e
Changed files (2)
home
common
home/common/desktop/default.nix
@@ -41,6 +41,7 @@
     playerctl
     pwvucontrol
     trash-cli
+    walk
     yt-dlp
   ];
 
home/common/shell/zsh.nix
@@ -100,6 +100,15 @@
 
       [ -n "$EAT_SHELL_INTEGRATION_DIR" ] && \
         source "$EAT_SHELL_INTEGRATION_DIR/zsh"
+
+      # walk - terminal navigator (only available on desktop systems)
+      if (( $+commands[walk] )); then
+        export WALK_REMOVE_CMD=trash-put
+        export WALK_OPEN_WITH="nix:vim;go:vim;rs:vim;py:vim;sh:vim;bash:vim;zsh:vim;md:glow -p;txt:less -N"
+        function lk {
+          cd "$(walk --icons "$@")"
+        }
+      fi
     '';
     loginExtra = ''
             # if [[ -z $DISPLAY && $TTY = /dev/tty1 ]]; then