Linux command
nix-registry 命令
文本
复制后可按需替换文件名、目录或参数。
常用示例
List registries
nix registry list
Pin flake to specific version
nix registry pin [nixpkgs]
Add registry entry
nix registry add [myflake] [github:owner/repo]
Remove registry entry
nix registry remove [myflake]
说明
nix registry manages the Nix flake registry. The registry provides shorthand names for flake URLs. Enables pinning flakes to specific versions for reproducibility.
参数
- list
- List registry entries.
- add _name_ _flake_
- Add flake alias.
- remove _name_
- Remove alias.
- pin _name_
- Pin flake to current version.
FAQ
What is the nix-registry command used for?
nix registry manages the Nix flake registry. The registry provides shorthand names for flake URLs. Enables pinning flakes to specific versions for reproducibility.
How do I run a basic nix-registry example?
Run `nix registry list` in a terminal, then adjust file names, paths, flags, or remote targets for your system.
What does list do in nix-registry?
List registry entries.