Yazi: Difference between revisions

Crdr (talk | contribs)
Troubleshooting: RAR file support needs _7zz-rar as a dependency
Qweered (talk | contribs)
m Modern alias
Line 94: Line 94:
</syntaxhighlight>Afterwards, you can use the new package.<syntaxhighlight lang="nix">
</syntaxhighlight>Afterwards, you can use the new package.<syntaxhighlight lang="nix">
# Global
# Global
environment.systemPackages = [ yazi.packages.${pkgs.system}.default ];
environment.systemPackages = [ yazi.packages.${pkgs.stdenv.hostPlatform.system}.default ];
# or, if you use the module
# or, if you use the module
programs.yazi.package = yazi.packages.${pkgs.system}.default;
programs.yazi.package = yazi.packages.${pkgs.stdenv.hostPlatform.system}.default;


# Home Manager
# Home Manager
home.packages = [ yazi.packages.${pkgs.system}.default ];
home.packages = [ yazi.packages.${pkgs.stdenv.hostPlatform.system}.default ];
# or, if you use the module
# or, if you use the module
programs.yazi.package = yazi.packages.${pkgs.system}.default;
programs.yazi.package = yazi.packages.${pkgs.stdenv.hostPlatform.system}.default;
</syntaxhighlight>Pre-built artifacts are served at https://yazi.cachix.org, so that Nix users don't have to build Yazi on their machine.<ref>https://yazi-rs.github.io/docs/installation/#cache</ref><syntaxhighlight lang="nix">
</syntaxhighlight>Pre-built artifacts are served at https://yazi.cachix.org, so that Nix users don't have to build Yazi on their machine.<ref>https://yazi-rs.github.io/docs/installation/#cache</ref><syntaxhighlight lang="nix">
nix = {
nix = {