diff --git a/README.md b/README.md index 76162e8a..6c7f10c4 100644 --- a/README.md +++ b/README.md @@ -19,10 +19,21 @@ pip install hyfetch Currently, these distributions have existing packages for HyFetch: * ArchLinux: `yay -S hyfetch` (Thanks to @ Aleksana) -* NixOS: `nix-env -i hyfetch` ([In Progress](https://github.com/NixOS/nixpkgs/pull/170309)) +* Nix (Nixpkgs): `nix-env -i hyfetch` ([In Progress](https://github.com/NixOS/nixpkgs/pull/170309)) +* Nix (NUR): ([In Progress](https://github.com/nix-community/NUR/pull/467)) * Guix: `guix install hyfetch` (Thanks to @ WammKD) -Currently, if you're using NixOS, you can use HyFetch with `nix-env -if https://github.com/hykilpikonna/hyfetch/tarball/master -A hyfetch` +Currently, if you're using Nix the package manager or NixOS, you can use HyFetch with `nix-env -if https://github.com/hykilpikonna/hyfetch/tarball/master -A hyfetch` + +> Now `hyfetch` is available in our NixOS-CN's flake. You can add [NixOS-CN](https://github.com/nixos-cn/flakes) in your [Nix Flake](https://nixos.org/manual/nix/unstable/command-ref/new-cli/nix3-flake.html) at first, then install package `hyfetch`. +> ``` +> #flake.nix +> +> environment.systemPackages = +> [ nixos-cn.legacyPackages.${system}.hyfetch ]; +> +> ``` +> (Thanks to @ YisuiDenghua and @ linyinfeng ) ## Usage