Name
nix registry resolve - resolve flake references using the registry
Synopsis
nix registry resolve [option...] flake-refs...
Examples
-
Resolve the
nixpkgsandblender-binflakerefs:# nix registry resolve nixpkgs blender-bin github:NixOS/nixpkgs/nixpkgs-unstable github:edolstra/nix-warez?dir=blender -
Resolve an indirect flakeref with a branch override:
# nix registry resolve nixpkgs/25.05 github:NixOS/nixpkgs/25.05
Description
This command resolves indirect flakerefs (e.g. nixpkgs) to direct flakerefs (e.g. github:NixOS/nixpkgs) using the flake registries. It looks up each provided flakeref in all available registries (flag, user, system, and global) and returns the resolved direct flakeref on a separate line on standard output. It does not fetch any flakes.
The resolution process may apply multiple redirections if necessary until a direct flakeref is found. If an indirect flakeref cannot be found in any registry, an error will be thrown.
See the nix registry manual page for more details on the registry.
Options
Logging-related options
-
Set the logging verbosity level to 'debug'.
-
--log-formatformatSet the format of log output; one of
raw,internal-json,barorbar-with-logs. -
--print-build-logs/-LPrint full build logs on standard error.
-
Decrease the logging verbosity level.
-
--verbose/-vIncrease the logging verbosity level.
Miscellaneous global options
-
Show usage information.
-
Disable substituters and consider all previously downloaded files up-to-date.
-
--optionname valueSet the Nix configuration setting name to value (overriding
nix.conf). -
Consider all previously downloaded files out-of-date.
-
Show version information.
Note
See
man nix.conffor overriding configuration settings with command line flags.