Yazi: Difference between revisions
m link added |
m Removed numbering |
||
| Line 5: | Line 5: | ||
== Installation == | == Installation == | ||
==== | ==== Using nix-shell ==== | ||
<syntaxhighlight lang="bash" start="3"> | <syntaxhighlight lang="bash" start="3"> | ||
nix-shell -p yazi | nix-shell -p yazi | ||
</syntaxhighlight> | </syntaxhighlight> | ||
==== | ==== System-Wide Installation on NixOS ==== | ||
<syntaxhighlight lang="text"> | <syntaxhighlight lang="text"> | ||
environment.systemPackages = [ | environment.systemPackages = [ | ||
| Line 19: | Line 19: | ||
</syntaxhighlight> | </syntaxhighlight> | ||
==== | ==== User-Specific Installation with Home Manager ==== | ||
<syntaxhighlight lang="text"> | <syntaxhighlight lang="text"> | ||
home.packages = [ | home.packages = [ | ||
| Line 30: | Line 30: | ||
== Configuration == | == Configuration == | ||
==== | ==== Basic ==== | ||
<syntaxhighlight lang="nix"> | <syntaxhighlight lang="nix"> | ||
programs.yazi = { | programs.yazi = { | ||
| Line 37: | Line 37: | ||
</syntaxhighlight> | </syntaxhighlight> | ||
==== | ==== Advanced ==== | ||
The configuration below is using home manager, but the same can be achieved if system-wide.<syntaxhighlight lang="nix"> | The configuration below is using home manager, but the same can be achieved if system-wide.<syntaxhighlight lang="nix"> | ||
programs.yazi = { | programs.yazi = { | ||
| Line 225: | Line 225: | ||
== Tips and Tricks == | == Tips and Tricks == | ||
==== | ==== Where to see a list of options? ==== | ||
The home manager options are defined in the following [https://nix-community.github.io/home-manager/options.xhtml#opt-programs.yazi.enable Home Manager Options Manual]. | The home manager options are defined in the following [https://nix-community.github.io/home-manager/options.xhtml#opt-programs.yazi.enable Home Manager Options Manual]. | ||
The system-wide options are listed on [https://mynixos.com/search?q=yazi MyNixOS]. | The system-wide options are listed on [https://mynixos.com/search?q=yazi MyNixOS]. | ||
==== | ==== Can this be used with stylix? ==== | ||
Yes, it can. See the following configuration:<syntaxhighlight lang="nix"> | Yes, it can. See the following configuration:<syntaxhighlight lang="nix"> | ||
theme = with config.stylix.base16Scheme; { | theme = with config.stylix.base16Scheme; { | ||
| Line 258: | Line 258: | ||
</syntaxhighlight> | </syntaxhighlight> | ||
==== | ==== How to map yazi to a key? ==== | ||
It depends on the window manager that you are using. On [https://wiki.nixos.org/wiki/Hyprland Hyprland] it's fairly easy:<syntaxhighlight lang="nix"> | It depends on the window manager that you are using. On [https://wiki.nixos.org/wiki/Hyprland Hyprland] it's fairly easy:<syntaxhighlight lang="nix"> | ||
bind = [ | bind = [ | ||