Yazi: Difference between revisions
m Modern alias |
mNo edit summary |
||
Line 5: | Line 5: | ||
== Installation == | == Installation == | ||
=== | There are several ways to install Yazi on NixOS. | ||
<syntaxhighlight lang="bash | |||
=== 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> | ||
=== | === System-wide === | ||
<syntaxhighlight lang="nix">programs.yazi | To install Yazi for all users on the system, add it to your {{ic|configuration.nix}}: | ||
<syntaxhighlight lang="nix"> | |||
programs.yazi.enable = true; | |||
</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> | |||
After adding the option, apply the changes: | |||
<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 | ==== Advanced ==== | ||
<syntaxhighlight lang="nix"> | <syntaxhighlight lang="nix"> | ||
programs.yazi = { | programs.yazi = { | ||
Line 76: | Line 85: | ||
== Tips and Tricks == | == Tips and Tricks == | ||
==== 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://https://yazi-rs.github.io/docs/installation/ Yazi official documentation] | |||
== References == | == References == | ||
[[Category:Applications]] | [[Category:Applications]] | ||
[[Category:File Manager]] | [[Category:File Manager]] |