feat(nix): migrate yazi

This commit is contained in:
Stefan Imhoff
2024-07-13 11:48:24 +02:00
parent 9ad17b68c5
commit de148896f6
3 changed files with 35 additions and 2 deletions

View File

@@ -408,8 +408,6 @@ brew "wxwidgets"
brew "xdotool" brew "xdotool"
# JavaScript package manager # JavaScript package manager
brew "yarn" brew "yarn"
# Blazing fast terminal file manager written in Rust, based on async I/O
brew "yazi"
# Download YouTube videos from the command-line # Download YouTube videos from the command-line
brew "youtube-dl" brew "youtube-dl"
# Process YAML, JSON, XML, CSV and properties documents from the CLI # Process YAML, JSON, XML, CSV and properties documents from the CLI

View File

@@ -23,6 +23,7 @@ in
./ruby ./ruby
./skhd ./skhd
./yabai ./yabai
./yazi
]; ];
config = { config = {

34
nix/home/yazi/default.nix Normal file
View File

@@ -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 ];
}