Revert "doc: don't use sha256 and non-sri hashes in user docs"

This reverts commit 309d5c169b.

The instructions don't work on NixOS 25.11: Nix 2.31 doesn't suport SRI
hashes in builtins.fetchTarball. Moreover the NixOS manual shouldn't
recomment using experimental commands.
This commit is contained in:
rnhmjoj 2026-06-05 10:59:57 +02:00
commit e0a630cb36
No known key found for this signature in database
GPG key ID: BFBAF4C975F76450

View file

@ -23,11 +23,11 @@
# Pinned Nixpkgs archive
#
# Use `curl -I https://channels.nixos.org/nixos-26.05` to get the
# latest commit of the stable channel and `nix --extra-experimental-features nix-command store prefetch-file --unpack`
# to compute its hash.
# latest commit of the stable channel and `nix-prefetch-url --unpack`
# to compute its sha256 hash.
nixpkgs = builtins.fetchTarball {
url = "https://github.com/NixOS/nixpkgs/archive/c217913993d6.tar.gz";
hash = "sha256-D1PA3xQv/s4W3lnR9yJFSld8UOLr0a/cBWMQMXS+1Qg=";
sha256 = "026mprs324330pfazlgbw987qmsa8ligglarvqbcxzig2kgw0lqg";
};
in
import "${nixpkgs}/nixos" {