Yazi: Difference between revisions

Qweered (talk | contribs)
m Modern alias
Eydee (talk | contribs)
m remove duplicate schema in URL
 
(One intermediate revision by one other user not shown)
Line 5: Line 5:
== Installation ==
== Installation ==


==== Using nix-shell ====
There are several ways to install Yazi on NixOS.
<syntaxhighlight lang="bash" start="3">
 
=== Temporary Shell ===
To temporarily use Yazi in your current shell session, run:
<syntaxhighlight lang="bash">
nix-shell -p yazi
nix-shell -p yazi
</syntaxhighlight>
</syntaxhighlight>


==== Using global configuration ====
=== System-wide ===
<syntaxhighlight lang="nix">programs.yazi = {
To install Yazi for all users on the system, add it to your {{ic|configuration.nix}}:
  enable = true;
<syntaxhighlight lang="nix">
  # There are more options available:
programs.yazi.enable = true;
  # https://search.nixos.org/options?channel=unstable&type=packages&query=programs.yazi
</syntaxhighlight>
};</syntaxhighlight>After modifying your configuration, apply the changes by running:<syntaxhighlight lang="bash">sudo nixos-rebuild switch</syntaxhighlight>
 
After adding the option, rebuild your system:
<syntaxhighlight lang="bash">
sudo nixos-rebuild switch
</syntaxhighlight>
 
=== Home Manager ===
To install Yazi for a single user, add it to your Home Manager configuration:
<syntaxhighlight lang="nix">
programs.yazi.enable = true;
</syntaxhighlight>


==== Using home configuration ====
After adding the option, apply the changes:
<syntaxhighlight lang="nix">programs.yazi = {
<syntaxhighlight lang="bash">
  enable = true;
  # There are more options available:
  # https://nix-community.github.io/home-manager/options.xhtml#opt-programs.yazi.enable
};</syntaxhighlight>After updating your configuration, apply the changes by running:<syntaxhighlight lang="bash">
home-manager switch
home-manager switch
</syntaxhighlight>
</syntaxhighlight>
Line 29: Line 38:
As mentioned above, there are both [https://search.nixos.org/options?channel=unstable&from=0&size=50&sort=relevance&type=packages&query=programs.yazi NixOS options] and [https://nix-community.github.io/home-manager/options.xhtml#opt-programs.yazi.enable home-manager options] for configuring Yazi.
As mentioned above, there are both [https://search.nixos.org/options?channel=unstable&from=0&size=50&sort=relevance&type=packages&query=programs.yazi NixOS options] and [https://nix-community.github.io/home-manager/options.xhtml#opt-programs.yazi.enable home-manager options] for configuring Yazi.


==== Advanced Example ====
==== Advanced ====
<syntaxhighlight lang="nix">
<syntaxhighlight lang="nix">
programs.yazi = {
programs.yazi = {
Line 76: Line 85:


== Tips and Tricks ==
== Tips and Tricks ==
==== Location 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 system-wide options are listed on {{nixos:option|programs.yazi.*}}.


==== Installing Plugins ====
==== Installing Plugins ====
Line 158: Line 162:
pkgs.yazi.override {_7zz = pkgs._7zz-rar; }
pkgs.yazi.override {_7zz = pkgs._7zz-rar; }
</syntaxHighlight>
</syntaxHighlight>
== See also ==
*[https://search.nixos.org/options?channel=unstable&query=programs.yazi NixOS options for Yazi]
*[https://yazi-rs.github.io/docs/installation/ Yazi official documentation]


== References ==
== References ==
[[Category:Applications]]
[[Category:Applications]]
[[Category:File Manager]]
[[Category:File Manager]]