Yazi: Difference between revisions

Klinger (talk | contribs)
m link added
Layer-09 (talk | contribs)
m Removed numbering
Line 5: Line 5:
== Installation ==
== Installation ==


==== 2.1 Using nix-shell ====
==== Using nix-shell ====
<syntaxhighlight lang="bash" start="3">
<syntaxhighlight lang="bash" start="3">
nix-shell -p yazi
nix-shell -p yazi
</syntaxhighlight>
</syntaxhighlight>


==== 2.2 System-Wide Installation on NixOS ====
==== System-Wide Installation on NixOS ====
<syntaxhighlight lang="text">
<syntaxhighlight lang="text">
environment.systemPackages = [
environment.systemPackages = [
Line 19: Line 19:
</syntaxhighlight>
</syntaxhighlight>


==== 2.3 User-Specific Installation with Home Manager ====
==== User-Specific Installation with Home Manager ====
<syntaxhighlight lang="text">
<syntaxhighlight lang="text">
home.packages = [  
home.packages = [  
Line 30: Line 30:
== Configuration ==
== Configuration ==


==== 3.1 Basic ====
==== Basic ====
<syntaxhighlight lang="nix">
<syntaxhighlight lang="nix">
programs.yazi = {
programs.yazi = {
Line 37: Line 37:
</syntaxhighlight>
</syntaxhighlight>


==== 3.2 Advanced ====
==== 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 ==


==== 4.1 Where to see a list of options? ====
==== 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].


==== 4.2 Can this be used with stylix? ====
==== 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>


==== 4.3 How to map yazi to a key? ====
==== 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 = [