You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I usually set the user level flake registry for nixpkgs so I can use --override-input nixpkgs flake:nixpkgs to stick to the same rev of nixpkgs in all projects. However these days Nix is ignoring my user level registry.
nix registry list
user flake:nixpkgs-master github:nixos/nixpkgs/master
system flake:nixpkgs path:/nix/store/jy9gf9bzmz2axsjrirbi90mbfdkd8bcc-source
nix --version
nix (Nix) 2.28.3
nix flake show github:numtide/treefmt-nix --override-input nixpkgs nixpkgs
error:
… while updating the lock file of flake 'github:numtide/treefmt-nix/020cb423808365fa3f10ff4cb8c0a25df35065a3?narHash=sha256-XgxghfND8TDypxsMTPU2GQdtBEsHTEc3qWE6RVEk8O0%3D'
… while updating the flake input 'nixpkgs'
error: cannot find flake 'flake:nixpkgs' in the flake registries
lix works as expected
lix --version
nix (Lix, like Nix) 2.91.1
lix flake show github:numtide/treefmt-nix --override-input nixpkgs nixpkgs
warning: not writing modified lock file of flake 'github:numtide/treefmt-nix':
• Updated input 'nixpkgs':
'github:nixos/nixpkgs/507b63021ada5fee621b6ca371c4fca9ca46f52c' (2025-04-23)
→ 'path:/nix/store/jy9gf9bzmz2axsjrirbi90mbfdkd8bcc-source?lastModified=0&narHash=sha256-618RRHMo5zgmLkLf5ZQqb2ObrOkWVQzr6L1ritQxoJ0%3D' (1970-01-01)
github:numtide/treefmt-nix/020cb423808365fa3f10ff4cb8c0a25df35065a3
├───checks
│ ├───aarch64-darwin
│ │ ├───empty-config omitted (use '--all-systems' to show)
│ │ ├───examples omitted (use '--all-systems' to show)
│ │ ├───formatter-actionlint omitted (use '--all-systems' to show)
│ │ ├───formatter-alejandra omitted (use '--all-systems' to sho
...
Describe the bug
I usually set the user level flake registry for
nixpkgs
so I can use--override-input nixpkgs flake:nixpkgs
to stick to the same rev of nixpkgs in all projects. However these days Nix is ignoring my user level registry.Steps To Reproduce
Expected behavior
flake:nixpkgs
should be resolved tob3582c75c7f21ce0b429898980eddbbf05c68e55
soflake.lock
should not be modified.Metadata
nix-env (Nix) 2.28.3
Additional context
#13156 (comment)
Probably related to #13144 (if it is, I'll close this issue)
Checklist
Add 👍 to issues you find important.
The text was updated successfully, but these errors were encountered: