소스 검색

docs(README): leave nix install instructions open-ended

Refs: #426
Christina Sørensen 2 년 전
부모
커밋
0e6d547b08
1개의 변경된 파일10개의 추가작업 그리고 1개의 파일을 삭제
  1. 10 1
      README.md

+ 10 - 1
README.md

@@ -121,7 +121,11 @@ sudo apt install -y eza
 
 [![nixpkgs unstable package](https://repology.org/badge/version-for-repo/nix_unstable/eza.svg)](https://repology.org/project/eza/versions)
 
-Eza is available from [Nixpkgs](https://github.com/NixOS/nixpkgs).
+> **Note**
+> Installing packages imperatively isn't idiomatic Nix, as this can lead to [many issues](https://stop-using-nix-env.privatevoid.net/).
+
+Eza is available from [Nixpkgs](https://github.com/NixOS/nixpkgs) and from the
+flake in this repository.
 
 For `nix profile` users:
 
@@ -135,6 +139,11 @@ For `nix-env` users:
 nix-env -i eza
 ```
 
+**Declarative Nix Installations**
+- Simple NixOS installation: [rfaulhaber/dotfiles](https://github.com/rfaulhaber/dotfiles/blob/a8d084d178efd0592b7ac02d34a450fb58913aca/nix/modules/programs/eza/default.nix#L15)
+- Using the flake via NixOS: [hallettj/home.nix](https://github.com/hallettj/home.nix/blob/a8388483e5d78e110be73c5af0e7f0e3ca8f8aa3/flake.nix#L19)
+- Using home-manager on NixOS: [Misterio77/nix-config](https://github.com/Misterio77/nix-config/blob/6867d66a2fe7899c608b9c8e5a8f9aee279d188b/home/misterio/features/cli/fish.nix#L6)
+
 ### Gentoo
 
 [![Gentoo package](https://repology.org/badge/version-for-repo/gentoo/eza.svg)](https://repology.org/project/eza/versions)