From de148896f6fa5dfe623708fcca92c583b939c1a6 Mon Sep 17 00:00:00 2001 From: Stefan Imhoff Date: Sat, 13 Jul 2024 11:48:24 +0200 Subject: [PATCH] feat(nix): migrate yazi --- Brewfile | 2 -- nix/home/default.nix | 1 + nix/home/yazi/default.nix | 34 ++++++++++++++++++++++++++++++++++ 3 files changed, 35 insertions(+), 2 deletions(-) create mode 100644 nix/home/yazi/default.nix diff --git a/Brewfile b/Brewfile index a3cd8f6..8c3a3c3 100644 --- a/Brewfile +++ b/Brewfile @@ -408,8 +408,6 @@ brew "wxwidgets" brew "xdotool" # JavaScript package manager brew "yarn" -# Blazing fast terminal file manager written in Rust, based on async I/O -brew "yazi" # Download YouTube videos from the command-line brew "youtube-dl" # Process YAML, JSON, XML, CSV and properties documents from the CLI diff --git a/nix/home/default.nix b/nix/home/default.nix index b4b38e7..1f63568 100644 --- a/nix/home/default.nix +++ b/nix/home/default.nix @@ -23,6 +23,7 @@ in ./ruby ./skhd ./yabai + ./yazi ]; config = { diff --git a/nix/home/yazi/default.nix b/nix/home/yazi/default.nix new file mode 100644 index 0000000..6160219 --- /dev/null +++ b/nix/home/yazi/default.nix @@ -0,0 +1,34 @@ +{ pkgs, ... }: + +{ + programs.yazi = { + enable = true; + enableBashIntegration = true; + enableFishIntegration = true; + enableZshIntegration = true; + settings = { + log = { + enabled = false; + }; + manager = { + ratio = [ 1 4 3 ]; + show_hidden = false; + sort_by = "natural"; + sort_dir_first = true; + sort_sensitive = false; + sort_reverse = false; + show_symlink = true; + }; + opener = { + edit = [ + { + run = "nvim \"$@\""; + block = true; + } + ]; + }; + }; + }; + + home.packages = [ pkgs.yazi ]; +}