3 ms·
> When does the determinism happen? > When I specified packages to install, I didn’t specify an integrity hash, let alone a version number. If I ran the same N
by ryangibb 3y ago
> When does the determinism happen?
> When I specified packages to install, I didn’t specify an integrity hash, let alone a version number. If I ran the same Nix configuration a year from now, I assume I’d get a different system because it would install different versions of the vim and curl packages I specified.
That would be from the Nixpkgs [0] instance obtained from a Nix channel [1].
Nix flakes [2] provide an alterative way to specify inputs which pin them in a `flake.lock`.
This allows things like Nix expression caching due to hermetic evaluation (as opposed to just builds being hermetic).
[0] https://nixos.org/manual/nixpkgs/stable/ https://nixos.org/manual/nixpkgs/stable/
[1] https://nixos.org/manual/nix/stable/package-management/channels.html https://nixos.org/manual/nix/stable/package-management/chann...
[2] https://nixos.org/manual/nix/stable/command-ref/new-cli/nix3-flake.html https://nixos.org/manual/nix/stable/command-ref/new-cli/nix3...