From a2c3037f7f5344b18c715a451e5d7feedc5dd05f Mon Sep 17 00:00:00 2001 From: WyFi <142740180+Wyfi0@users.noreply.github.com> Date: Fri, 18 Jul 2025 00:12:19 +0000 Subject: [PATCH] Update README.md Added nix-shell and NixOS install instructions --- README.md | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index dd91b817..b27725da 100644 --- a/README.md +++ b/README.md @@ -68,7 +68,7 @@ choco install croc winget install schollz.croc ``` -### On Unix +### Using nix-env You can install the latest release with [Nix](https://nixos.org/): @@ -76,6 +76,16 @@ You can install the latest release with [Nix](https://nixos.org/): nix-env -i croc ``` +### On NixOS + +You can add this to your [configuration.nix](https://nixos.org/manual/nixos/stable/#ch-configuration): + +```nix +environment.systemPackages = [ + pkgs.croc +]; +``` + ### On Alpine Linux First, install dependencies: