CLI reference¶
Generated from pynix's live command tree — see docs/_generate_pynix_reference.py. Every command also accepts --help for the same information at the terminal.
pynix¶
pynix — nanopynix CLI
pynix build¶
Build a Nix derivation value
Argument |
Type |
Help |
|---|---|---|
|
|
Set the Nix configuration setting NAME to VALUE (overriding nix.conf). Repeatable. (default: |
|
|
Nix log verbosity: error, warn, notice, info, talkative, chatty, debug, vomit, or 0-7. (default: |
|
|
Evaluate FILE as a Nix expression. FILE is a path, a lookup path, a URL, or a flake reference, and it may end with '#' and an attribute path. (default: |
|
|
Build the derivations that the Nix expression EXPR gives, in place of --file. It is pure unless --impure. (default: |
|
|
Pass the value of the Nix expression EXPR as the argument NAME to the function that --file names. Repeatable. (default: |
|
|
Pass the string STRING as the argument NAME to the function that --file names. Repeatable. (default: |
|
|
Pass the JSON value JSON as the argument NAME to the function that --file names. Repeatable. (default: |
|
|
Pass each key of the JSON object JSON as an argument to the function that --file names. '@FILE' reads the object from FILE. (default: |
|
|
Dot-separated attribute path within the evaluation result. Repeatable: each one is a target. (default: |
|
|
Evaluate FLAKE, optionally with a '#'-separated attribute path. (default: |
|
|
Evaluate a flake impurely: allow the environment, mutable paths and builtins.currentSystem. (default: |
|
|
Store URI to build with. (default: |
|
|
Store URI to evaluate with. Defaults to --store. (default: |
|
|
Space-separated substituter URLs. (default: |
|
|
Space-separated substituter public keys. (default: |
|
|
Print build log lines to stderr. (default: |
|
|
Show the progress as nix-output-monitor does: the dependency graph of the builds and downloads, and a row of totals, at the bottom of stderr. (default: |
|
|
Keep going in case of failed builds, to the greatest extent possible. (default: |
|
|
Rebuild an already built package and compare the result to the existing store paths. (default: |
|
|
Update plain fixed-output hash literals after a hash mismatch. (default: |
|
|
Build nothing. Report what the build would build and fetch. With --update-fod, show the hash changes without writing them. (default: |
|
|
Build in a private user namespace, against an overlay store whose lower layer is the host store. Nothing is copied in, the host store does not change, and this process owns the sandbox settings that the daemon otherwise controls. Linux only. (default: |
|
|
Keep the overlay's upper layer here, instead of in a temporary directory that is deleted on exit. Reuse the same directory to keep what earlier --namespaced builds produced. Implies --namespaced. (default: |
|
|
Build in a Linux VM that this command starts on Apple's Virtualization.framework, and stops when it exits. The VM builds aarch64-linux, and x86_64-linux through Rosetta. Its store overlays the host store, so nothing is copied in. Apple silicon and macOS 26 or later, and the host /nix must be case-sensitive. (default: |
|
|
The manifest of the --linux-builder guest: the store path that |
|
|
Build in a macOS VM that this command starts from a snapshot on QEMU and Hypervisor.framework, and stops when it exits. The snapshot loads in a fraction of a second, and every build starts from the same guest. The VM substitutes or receives every input. Apple silicon only. (default: |
|
|
The directory of the --darwin-builder snapshot: a booted macOS guest that |
|
|
Copy the outputs of a --namespaced, --linux-builder or --darwin-builder build into the host store when the build succeeds. Without it the outputs are gone when the worker or the VM exits. (default: |
|
|
Use PATH as prefix for the symlinks to the results. Each one is a garbage collector root. By default, no out links are created. (default: |
|
|
Print the resulting output paths on stdout, one on each line, in place of the JSON result. (default: |
|
|
Store URI to copy the closure of the outputs into when the build succeeds. --store and the configured builders decide where the build runs, and this option decides where the result ends up. (default: |
|
|
Extra path to mount into the build sandbox, as /inside=/outside or /path. Repeatable. Requires --namespaced, because the daemon does not let a client change its sandbox. (default: |
pynix config¶
Inspect Nix configuration
pynix config show¶
Show Nix configuration settings
Argument |
Type |
Help |
|---|---|---|
|
|
Set the Nix configuration setting NAME to VALUE (overriding nix.conf). Repeatable. (default: |
|
|
Nix log verbosity: error, warn, notice, info, talkative, chatty, debug, vomit, or 0-7. (default: |
|
|
Show only one setting. (default: |
pynix config check¶
Check that Nix configuration can be loaded
Argument |
Type |
Help |
|---|---|---|
|
|
Set the Nix configuration setting NAME to VALUE (overriding nix.conf). Repeatable. (default: |
|
|
Nix log verbosity: error, warn, notice, info, talkative, chatty, debug, vomit, or 0-7. (default: |
pynix config current-system¶
Show the effective system used by builtins.currentSystem
Argument |
Type |
Help |
|---|---|---|
|
|
Set the Nix configuration setting NAME to VALUE (overriding nix.conf). Repeatable. (default: |
|
|
Nix log verbosity: error, warn, notice, info, talkative, chatty, debug, vomit, or 0-7. (default: |
pynix copy¶
Copy the closure of a store path from one store to another
Argument |
Type |
Help |
|---|---|---|
|
|
Set the Nix configuration setting NAME to VALUE (overriding nix.conf). Repeatable. (default: |
|
|
Nix log verbosity: error, warn, notice, info, talkative, chatty, debug, vomit, or 0-7. (default: |
|
|
Store paths to copy. Give none when --file or --flake names the target. (default: |
|
|
Evaluate FILE as a Nix expression. FILE is a path, a lookup path, a URL, or a flake reference, and it may end with '#' and an attribute path. (default: |
|
|
Pass the value of the Nix expression EXPR as the argument NAME to the function that --file names. Repeatable. (default: |
|
|
Pass the string STRING as the argument NAME to the function that --file names. Repeatable. (default: |
|
|
Pass the JSON value JSON as the argument NAME to the function that --file names. Repeatable. (default: |
|
|
Pass each key of the JSON object JSON as an argument to the function that --file names. '@FILE' reads the object from FILE. (default: |
|
|
Dot-separated attribute path within the evaluation result. (default: |
|
|
Evaluate FLAKE, optionally with a '#'-separated attribute path. (default: |
|
|
Evaluate a flake impurely: allow the environment, mutable paths and builtins.currentSystem. (default: |
|
|
Store URI to copy into. --store is the other side. (default: |
|
|
Store URI to copy out of. --store is the other side. (default: |
|
|
Refuse a path that the destination store cannot verify a signature for. (default: |
|
|
Store URI for the side that --to or --from does not name. (default: |
pynix eval¶
Evaluate a Nix expression and print the result as JSON
Argument |
Type |
Help |
|---|---|---|
|
|
Set the Nix configuration setting NAME to VALUE (overriding nix.conf). Repeatable. (default: |
|
|
Nix log verbosity: error, warn, notice, info, talkative, chatty, debug, vomit, or 0-7. (default: |
|
|
Nix expression to evaluate. Reads from stdin if not provided. (default: |
|
|
Evaluate FILE as a Nix expression. FILE is a path, a lookup path, a URL, or a flake reference, and it may end with '#' and an attribute path. (default: |
|
|
Pass the value of the Nix expression EXPR as the argument NAME to the function that --file names. Repeatable. (default: |
|
|
Pass the string STRING as the argument NAME to the function that --file names. Repeatable. (default: |
|
|
Pass the JSON value JSON as the argument NAME to the function that --file names. Repeatable. (default: |
|
|
Pass each key of the JSON object JSON as an argument to the function that --file names. '@FILE' reads the object from FILE. (default: |
|
|
Dot-separated attribute path within the evaluation result. (default: |
|
|
Evaluate FLAKE, optionally with a '#'-separated attribute path. (default: |
|
|
Store URI to evaluate with. (default: |
|
|
Apply the function EXPR to the result before it is printed. (default: |
|
|
Print the result as a string, with no quotes and no newline. A value that does not coerce to a string is an error. (default: |
|
|
Print the result as nix eval --json prints it: compact JSON on one line, in place of indented JSON. (default: |
|
|
Evaluate a flake impurely: allow the environment, mutable paths and builtins.currentSystem. (default: |
|
|
Do not instantiate each evaluated derivation. This improves performance, but can cause errors when accessing store paths of derivations during evaluation. (default: |
pynix derivation¶
Inspect and manipulate Nix derivations
pynix derivation show¶
Show the contents of a Nix derivation
Examples: pynix derivation show --file default.nix --attr hello pynix derivation show --flake .#hello pynix derivation show --flake nixpkgs#python3Packages.requests
Argument |
Type |
Help |
|---|---|---|
|
|
Set the Nix configuration setting NAME to VALUE (overriding nix.conf). Repeatable. (default: |
|
|
Nix log verbosity: error, warn, notice, info, talkative, chatty, debug, vomit, or 0-7. (default: |
|
|
Evaluate FILE as a Nix expression. FILE is a path, a lookup path, a URL, or a flake reference, and it may end with '#' and an attribute path. (default: |
|
|
Pass the value of the Nix expression EXPR as the argument NAME to the function that --file names. Repeatable. (default: |
|
|
Pass the string STRING as the argument NAME to the function that --file names. Repeatable. (default: |
|
|
Pass the JSON value JSON as the argument NAME to the function that --file names. Repeatable. (default: |
|
|
Pass each key of the JSON object JSON as an argument to the function that --file names. '@FILE' reads the object from FILE. (default: |
|
|
Dot-separated attribute path within the evaluation result. (default: |
|
|
Evaluate FLAKE, optionally with a '#'-separated attribute path. (default: |
|
|
Evaluate a flake impurely: allow the environment, mutable paths and builtins.currentSystem. (default: |
|
|
Store URI to use. (default: |
pynix develop¶
Run a command, or an interactive bash, in a derivation's build environment
Everything after -- is the command. Without a command, this starts an interactive bash.
Examples: pynix develop --file default.nix --attr hello pynix develop --flake .# -- make -j4 pynix develop --flake .# -- bash -c 'make | less'
Argument |
Type |
Help |
|---|---|---|
|
|
Set the Nix configuration setting NAME to VALUE (overriding nix.conf). Repeatable. (default: |
|
|
Nix log verbosity: error, warn, notice, info, talkative, chatty, debug, vomit, or 0-7. (default: |
|
|
Evaluate FILE as a Nix expression. FILE is a path, a lookup path, a URL, or a flake reference, and it may end with '#' and an attribute path. (default: |
|
|
Pass the value of the Nix expression EXPR as the argument NAME to the function that --file names. Repeatable. (default: |
|
|
Pass the string STRING as the argument NAME to the function that --file names. Repeatable. (default: |
|
|
Pass the JSON value JSON as the argument NAME to the function that --file names. Repeatable. (default: |
|
|
Pass each key of the JSON object JSON as an argument to the function that --file names. '@FILE' reads the object from FILE. (default: |
|
|
Dot-separated attribute path within the evaluation result. (default: |
|
|
Evaluate FLAKE, optionally with a '#'-separated attribute path. (default: |
|
|
Evaluate a flake impurely: allow the environment, mutable paths and builtins.currentSystem. (default: |
|
|
Store URI to build with. (default: |
|
|
Store URI to evaluate with. Defaults to --store. (default: |
|
|
Print build log lines to stderr. (default: |
|
|
Command to run in the environment, after --. Omit for an interactive bash. (default: |
pynix edit¶
Open the Nix expression of a Nix package in $EDITOR
Opens the file of meta.position at its line, as nix edit does. $EDITOR defaults to cat. emacs, nano, vim and kak get the line as +LINE.
Examples:
pynix edit --flake nixpkgs#hello
pynix edit --file '
Argument |
Type |
Help |
|---|---|---|
|
|
Set the Nix configuration setting NAME to VALUE (overriding nix.conf). Repeatable. (default: |
|
|
Nix log verbosity: error, warn, notice, info, talkative, chatty, debug, vomit, or 0-7. (default: |
|
|
Evaluate FILE as a Nix expression. FILE is a path, a lookup path, a URL, or a flake reference, and it may end with '#' and an attribute path. (default: |
|
|
Pass the value of the Nix expression EXPR as the argument NAME to the function that --file names. Repeatable. (default: |
|
|
Pass the string STRING as the argument NAME to the function that --file names. Repeatable. (default: |
|
|
Pass the JSON value JSON as the argument NAME to the function that --file names. Repeatable. (default: |
|
|
Pass each key of the JSON object JSON as an argument to the function that --file names. '@FILE' reads the object from FILE. (default: |
|
|
Dot-separated attribute path within the evaluation result. (default: |
|
|
Evaluate FLAKE, optionally with a '#'-separated attribute path. (default: |
|
|
Evaluate a flake impurely: allow the environment, mutable paths and builtins.currentSystem. (default: |
|
|
Store URI to use. (default: |
pynix env¶
Run programs in an environment of packages
pynix env shell¶
Run a shell in which the named packages are available
Each package's bin directory goes on PATH, with the packages it propagates. Without --file, each installable is a flake reference; with --file, each is an attribute path in that file.
Examples:
pynix env shell nixpkgs#jq nixpkgs#hello
pynix env shell nixpkgs#git --command git log -- README.md
pynix env shell --file '
Argument |
Type |
Help |
|---|---|---|
|
|
Set the Nix configuration setting NAME to VALUE (overriding nix.conf). Repeatable. (default: |
|
|
Nix log verbosity: error, warn, notice, info, talkative, chatty, debug, vomit, or 0-7. (default: |
|
|
Flake references, or attribute paths of --file. (default: |
|
|
Evaluate FILE as a Nix expression. FILE is a path, a lookup path, a URL, or a flake reference, and it may end with '#' and an attribute path. (default: |
|
|
Evaluate a flake impurely: allow the environment, mutable paths and builtins.currentSystem. (default: |
|
|
Pass the value of the Nix expression EXPR as the argument NAME to the function that --file names. Repeatable. (default: |
|
|
Pass the string STRING as the argument NAME to the function that --file names. Repeatable. (default: |
|
|
Pass the JSON value JSON as the argument NAME to the function that --file names. Repeatable. (default: |
|
|
Pass each key of the JSON object JSON as an argument to the function that --file names. '@FILE' reads the object from FILE. (default: |
|
|
Store URI to build with. (default: |
|
|
Print build log lines to stderr. (default: |
|
|
Command and arguments to run, instead of $SHELL. Takes every argument after it. (default: |
pynix flake¶
Inspect and manage Nix flakes
pynix flake show¶
Show the outputs provided by a flake
Argument |
Type |
Help |
|---|---|---|
|
|
Set the Nix configuration setting NAME to VALUE (overriding nix.conf). Repeatable. (default: |
|
|
Nix log verbosity: error, warn, notice, info, talkative, chatty, debug, vomit, or 0-7. (default: |
|
|
Flake reference (e.g. '.#' or 'nixpkgs#'). (required) |
|
|
Dot-separated attribute path within the flake outputs to start from. (default: |
|
|
Store URI to evaluate with. (default: |
pynix flake metadata¶
Show locked flake metadata
Argument |
Type |
Help |
|---|---|---|
|
|
Set the Nix configuration setting NAME to VALUE (overriding nix.conf). Repeatable. (default: |
|
|
Nix log verbosity: error, warn, notice, info, talkative, chatty, debug, vomit, or 0-7. (default: |
|
|
Flake reference (e.g. '.' or 'nixpkgs'). (required) |
|
|
Store URI to evaluate with. (default: |
pynix flake info¶
Alias for flake metadata
Argument |
Type |
Help |
|---|---|---|
|
|
Set the Nix configuration setting NAME to VALUE (overriding nix.conf). Repeatable. (default: |
|
|
Nix log verbosity: error, warn, notice, info, talkative, chatty, debug, vomit, or 0-7. (default: |
|
|
Flake reference (e.g. '.' or 'nixpkgs'). (required) |
|
|
Store URI to evaluate with. (default: |
pynix flake lock¶
Create the missing entries of a flake's lock file
An entry that is in the lock file already stays as it is. Nix reports each entry that it adds on stderr.
Examples: pynix flake lock pynix flake lock ./path/to/flake
Argument |
Type |
Help |
|---|---|---|
|
|
Set the Nix configuration setting NAME to VALUE (overriding nix.conf). Repeatable. (default: |
|
|
Nix log verbosity: error, warn, notice, info, talkative, chatty, debug, vomit, or 0-7. (default: |
|
|
Flake reference (default: '.'). (default: |
|
|
Store URI to fetch the inputs into. (default: |
pynix flake update¶
Update the inputs of a flake's lock file to their newest revisions
With no input named, this updates every input. Nix reports each input that moves on stderr, with the old and the new revision.
Examples: pynix flake update pynix flake update nixpkgs pynix flake update mid/leaf --flake ./path/to/flake
Argument |
Type |
Help |
|---|---|---|
|
|
Set the Nix configuration setting NAME to VALUE (overriding nix.conf). Repeatable. (default: |
|
|
Nix log verbosity: error, warn, notice, info, talkative, chatty, debug, vomit, or 0-7. (default: |
|
|
Inputs to update, such as 'nixpkgs' or 'a/b'. Omit to update every input. (default: |
|
|
Flake reference whose lock file to update (default: '.'). (default: |
|
|
Store URI to fetch the inputs into. (default: |
pynix flake check¶
Check that a flake evaluates, and build its checks
Each output is checked by its kind, as nix flake check does. The checks of this system are built. With --keep-going every failure is reported before the command fails; without it the first one ends it.
Examples: pynix flake check pynix flake check --no-build ./path/to/flake
Argument |
Type |
Help |
|---|---|---|
|
|
Set the Nix configuration setting NAME to VALUE (overriding nix.conf). Repeatable. (default: |
|
|
Nix log verbosity: error, warn, notice, info, talkative, chatty, debug, vomit, or 0-7. (default: |
|
|
Flake reference (default: '.'). (default: |
|
|
Do not build the checks; evaluate only, and write nothing to the store. (default: |
|
|
Check the outputs of every system, not only this one. (default: |
|
|
Report every failure, not only the first one. (default: |
|
|
Use PATH as prefix for the symlinks to the results. Each one is a garbage collector root. By default, no out links are created. (default: |
|
|
Print the output paths of the checks on stdout, one on each line. (default: |
|
|
Store URI to evaluate and build with. (default: |
pynix fmt¶
Reformat your code in the standard style
Runs formatter.
Examples: pynix fmt pynix fmt -- --check .
Argument |
Type |
Help |
|---|---|---|
|
|
Set the Nix configuration setting NAME to VALUE (overriding nix.conf). Repeatable. (default: |
|
|
Nix log verbosity: error, warn, notice, info, talkative, chatty, debug, vomit, or 0-7. (default: |
|
|
Evaluate a flake impurely: allow the environment, mutable paths and builtins.currentSystem. (default: |
|
|
Store URI to build with. (default: |
|
|
Print build log lines to stderr. (default: |
|
|
Arguments for the formatter, after --. (default: |
pynix hash¶
Compute and convert cryptographic hashes
pynix hash convert¶
Convert between hash formats
Argument |
Type |
Help |
|---|---|---|
|
|
Set the Nix configuration setting NAME to VALUE (overriding nix.conf). Repeatable. (default: |
|
|
Nix log verbosity: error, warn, notice, info, talkative, chatty, debug, vomit, or 0-7. (default: |
|
|
Hashes to convert. (default: |
|
|
Hash format ( |
|
|
Hash format ( |
|
|
Hash algorithm ( |
pynix hash path¶
Print cryptographic hash of the NAR serialisation of a path
Argument |
Type |
Help |
|---|---|---|
|
|
Set the Nix configuration setting NAME to VALUE (overriding nix.conf). Repeatable. (default: |
|
|
Nix log verbosity: error, warn, notice, info, talkative, chatty, debug, vomit, or 0-7. (default: |
|
|
Paths to hash. (default: |
|
|
Hash algorithm ( |
|
|
Print the hash in SRI format. (default: |
|
|
Print the hash in base-64 format. (default: |
|
|
Print the hash in base-32 (Nix-specific) format. (default: |
|
|
Print the hash in base-16 format. (default: |
|
|
Hash algorithm ( |
|
|
How to compute the hash of the input. (default: |
|
|
Hash format ( |
pynix hash file¶
Print cryptographic hash of a regular file
Argument |
Type |
Help |
|---|---|---|
|
|
Set the Nix configuration setting NAME to VALUE (overriding nix.conf). Repeatable. (default: |
|
|
Nix log verbosity: error, warn, notice, info, talkative, chatty, debug, vomit, or 0-7. (default: |
|
|
Paths to hash. (default: |
|
|
Hash algorithm ( |
|
|
Print the hash in SRI format. (default: |
|
|
Print the hash in base-64 format. (default: |
|
|
Print the hash in base-32 (Nix-specific) format. (default: |
|
|
Print the hash in base-16 format. (default: |
pynix hash to-base16¶
Convert a hash to base-16 representation (deprecated, use nix hash convert instead)
Argument |
Type |
Help |
|---|---|---|
|
|
Set the Nix configuration setting NAME to VALUE (overriding nix.conf). Repeatable. (default: |
|
|
Nix log verbosity: error, warn, notice, info, talkative, chatty, debug, vomit, or 0-7. (default: |
|
|
Hashes to convert. (default: |
|
|
Hash algorithm ( |
pynix hash to-base32¶
Convert a hash to base-32 representation (deprecated, use nix hash convert instead)
Argument |
Type |
Help |
|---|---|---|
|
|
Set the Nix configuration setting NAME to VALUE (overriding nix.conf). Repeatable. (default: |
|
|
Nix log verbosity: error, warn, notice, info, talkative, chatty, debug, vomit, or 0-7. (default: |
|
|
Hashes to convert. (default: |
|
|
Hash algorithm ( |
pynix hash to-base64¶
Convert a hash to base-64 representation (deprecated, use nix hash convert instead)
Argument |
Type |
Help |
|---|---|---|
|
|
Set the Nix configuration setting NAME to VALUE (overriding nix.conf). Repeatable. (default: |
|
|
Nix log verbosity: error, warn, notice, info, talkative, chatty, debug, vomit, or 0-7. (default: |
|
|
Hashes to convert. (default: |
|
|
Hash algorithm ( |
pynix hash to-sri¶
Convert a hash to SRI representation (deprecated, use nix hash convert instead)
Argument |
Type |
Help |
|---|---|---|
|
|
Set the Nix configuration setting NAME to VALUE (overriding nix.conf). Repeatable. (default: |
|
|
Nix log verbosity: error, warn, notice, info, talkative, chatty, debug, vomit, or 0-7. (default: |
|
|
Hashes to convert. (default: |
|
|
Hash algorithm ( |
pynix key¶
Generate and convert Nix signing keys
pynix key generate-secret¶
Generate a secret key for signing store paths
Argument |
Type |
Help |
|---|---|---|
|
|
Set the Nix configuration setting NAME to VALUE (overriding nix.conf). Repeatable. (default: |
|
|
Nix log verbosity: error, warn, notice, info, talkative, chatty, debug, vomit, or 0-7. (default: |
|
|
Identifier of the key (e.g. |
|
|
Type of key: one of the types this Nix has. NixOS/nix has ed25519 only; Determinate Nix also has ml-dsa-44, ml-dsa-65, ml-dsa-87 and ecdsa-p384, which need the cnsa experimental feature. (default: |
pynix key convert-secret-to-public¶
Generate a public key for verifying store paths from a secret key read from standard input
Argument |
Type |
Help |
|---|---|---|
|
|
Set the Nix configuration setting NAME to VALUE (overriding nix.conf). Repeatable. (default: |
|
|
Nix log verbosity: error, warn, notice, info, talkative, chatty, debug, vomit, or 0-7. (default: |
pynix key convert-secret-to-pem¶
Convert a secret key read from standard input to PEM PKCS#8 format
Argument |
Type |
Help |
|---|---|---|
|
|
Set the Nix configuration setting NAME to VALUE (overriding nix.conf). Repeatable. (default: |
|
|
Nix log verbosity: error, warn, notice, info, talkative, chatty, debug, vomit, or 0-7. (default: |
pynix key convert-public-to-pem¶
Convert a public key read from standard input to PEM SubjectPublicKeyInfo format
Argument |
Type |
Help |
|---|---|---|
|
|
Set the Nix configuration setting NAME to VALUE (overriding nix.conf). Repeatable. (default: |
|
|
Nix log verbosity: error, warn, notice, info, talkative, chatty, debug, vomit, or 0-7. (default: |
pynix log¶
Show the build log for a store path
Argument |
Type |
Help |
|---|---|---|
|
|
Set the Nix configuration setting NAME to VALUE (overriding nix.conf). Repeatable. (default: |
|
|
Nix log verbosity: error, warn, notice, info, talkative, chatty, debug, vomit, or 0-7. (default: |
|
|
Store path whose build log should be printed. (required) |
|
|
Store URI to query. (default: |
pynix nar¶
Create or inspect NAR files
pynix nar cat¶
Print the contents of a file inside a NAR file on stdout
Argument |
Type |
Help |
|---|---|---|
|
|
Set the Nix configuration setting NAME to VALUE (overriding nix.conf). Repeatable. (default: |
|
|
Nix log verbosity: error, warn, notice, info, talkative, chatty, debug, vomit, or 0-7. (default: |
|
|
NAR file to read. (required) |
|
|
Path of the file inside the NAR. (required) |
pynix nar dump-path¶
Serialise a path to stdout in NAR format (deprecated alias for nar pack)
Argument |
Type |
Help |
|---|---|---|
|
|
Set the Nix configuration setting NAME to VALUE (overriding nix.conf). Repeatable. (default: |
|
|
Nix log verbosity: error, warn, notice, info, talkative, chatty, debug, vomit, or 0-7. (default: |
|
|
Path to serialise. (required) |
pynix nar ls¶
Show information about a path inside a NAR file
Argument |
Type |
Help |
|---|---|---|
|
|
Set the Nix configuration setting NAME to VALUE (overriding nix.conf). Repeatable. (default: |
|
|
Nix log verbosity: error, warn, notice, info, talkative, chatty, debug, vomit, or 0-7. (default: |
|
|
NAR file to read. (required) |
|
|
Path inside the NAR. (required) |
|
|
List subdirectories recursively. (default: |
|
|
Show detailed file information. (default: |
|
|
Show directories rather than their contents. (default: |
|
|
Produce output in JSON format. (default: |
pynix nar pack¶
Serialise a path to stdout in NAR format
Argument |
Type |
Help |
|---|---|---|
|
|
Set the Nix configuration setting NAME to VALUE (overriding nix.conf). Repeatable. (default: |
|
|
Nix log verbosity: error, warn, notice, info, talkative, chatty, debug, vomit, or 0-7. (default: |
|
|
Path to serialise. (required) |
pynix path-info¶
Show information about a store path
Argument |
Type |
Help |
|---|---|---|
|
|
Set the Nix configuration setting NAME to VALUE (overriding nix.conf). Repeatable. (default: |
|
|
Nix log verbosity: error, warn, notice, info, talkative, chatty, debug, vomit, or 0-7. (default: |
|
|
Store path to query (e.g. '/nix/store/hash-name'). (required) |
|
|
Store URI to query. (default: |
pynix print-dev-env¶
Print the build environment of a derivation
Examples: pynix print-dev-env --file default.nix --attr hello pynix print-dev-env --flake .#hello --json
Argument |
Type |
Help |
|---|---|---|
|
|
Set the Nix configuration setting NAME to VALUE (overriding nix.conf). Repeatable. (default: |
|
|
Nix log verbosity: error, warn, notice, info, talkative, chatty, debug, vomit, or 0-7. (default: |
|
|
Evaluate FILE as a Nix expression. FILE is a path, a lookup path, a URL, or a flake reference, and it may end with '#' and an attribute path. (default: |
|
|
Pass the value of the Nix expression EXPR as the argument NAME to the function that --file names. Repeatable. (default: |
|
|
Pass the string STRING as the argument NAME to the function that --file names. Repeatable. (default: |
|
|
Pass the JSON value JSON as the argument NAME to the function that --file names. Repeatable. (default: |
|
|
Pass each key of the JSON object JSON as an argument to the function that --file names. '@FILE' reads the object from FILE. (default: |
|
|
Dot-separated attribute path within the evaluation result. (default: |
|
|
Evaluate FLAKE, optionally with a '#'-separated attribute path. (default: |
|
|
Evaluate a flake impurely: allow the environment, mutable paths and builtins.currentSystem. (default: |
|
|
Store URI to build with. (default: |
|
|
Store URI to evaluate with. Defaults to --store. (default: |
|
|
Print build log lines to stderr. (default: |
|
|
Print the environment as JSON, instead of the bash that restores it. (default: |
pynix registry¶
Manage the flake registry, which resolves an indirect flake reference
pynix registry list¶
List every flake registry entry, with the layer that holds it
Argument |
Type |
Help |
|---|---|---|
|
|
Set the Nix configuration setting NAME to VALUE (overriding nix.conf). Repeatable. (default: |
|
|
Nix log verbosity: error, warn, notice, info, talkative, chatty, debug, vomit, or 0-7. (default: |
|
|
Store URI to query. (default: |
pynix registry add¶
Point one flake reference at another
Argument |
Type |
Help |
|---|---|---|
|
|
Set the Nix configuration setting NAME to VALUE (overriding nix.conf). Repeatable. (default: |
|
|
Nix log verbosity: error, warn, notice, info, talkative, chatty, debug, vomit, or 0-7. (default: |
|
|
Flake reference to resolve, for example 'nixpkgs'. (required) |
|
|
Flake reference it resolves to, for example 'github:NixOS/nixpkgs'. (required) |
|
|
Registry file to change. Defaults to the registry of the user. (default: |
|
|
Store URI to use. (default: |
pynix registry remove¶
Drop every entry for one flake reference
Argument |
Type |
Help |
|---|---|---|
|
|
Set the Nix configuration setting NAME to VALUE (overriding nix.conf). Repeatable. (default: |
|
|
Nix log verbosity: error, warn, notice, info, talkative, chatty, debug, vomit, or 0-7. (default: |
|
|
Flake reference to drop, for example 'nixpkgs'. (required) |
|
|
Registry file to change. Defaults to the registry of the user. (default: |
|
|
Store URI to use. (default: |
pynix registry pin¶
Pin a flake reference to the reference it resolves to now
Argument |
Type |
Help |
|---|---|---|
|
|
Set the Nix configuration setting NAME to VALUE (overriding nix.conf). Repeatable. (default: |
|
|
Nix log verbosity: error, warn, notice, info, talkative, chatty, debug, vomit, or 0-7. (default: |
|
|
Flake reference to pin, for example 'nixpkgs'. (required) |
|
|
Flake reference to pin it to. Defaults to the reference itself. (default: |
|
|
Registry file to change. Defaults to the registry of the user. (default: |
|
|
Store URI to use. (default: |
pynix repl¶
Open an interactive Nix evaluation session.
Argument |
Type |
Help |
|---|---|---|
|
|
Set the Nix configuration setting NAME to VALUE (overriding nix.conf). Repeatable. (default: |
|
|
Nix log verbosity: error, warn, notice, info, talkative, chatty, debug, vomit, or 0-7. (default: |
|
|
Store URI to evaluate with. (default: |
|
|
Evaluate FILE as a Nix expression. FILE is a path, a lookup path, a URL, or a flake reference, and it may end with '#' and an attribute path. (default: |
|
|
Pass the value of the Nix expression EXPR as the argument NAME to the function that --file names. Repeatable. (default: |
|
|
Pass the string STRING as the argument NAME to the function that --file names. Repeatable. (default: |
|
|
Pass the JSON value JSON as the argument NAME to the function that --file names. Repeatable. (default: |
|
|
Pass each key of the JSON object JSON as an argument to the function that --file names. '@FILE' reads the object from FILE. (default: |
|
|
Dot-separated attribute path within the evaluation result. (default: |
|
|
Evaluate FLAKE, optionally with a '#'-separated attribute path. (default: |
pynix run¶
Build an app or a package, and run it
A flake fragment selects as nix run does: apps.
Examples:
pynix run --flake nixpkgs#hello
pynix run --flake .# -- --version
pynix run --file '
Argument |
Type |
Help |
|---|---|---|
|
|
Set the Nix configuration setting NAME to VALUE (overriding nix.conf). Repeatable. (default: |
|
|
Nix log verbosity: error, warn, notice, info, talkative, chatty, debug, vomit, or 0-7. (default: |
|
|
Evaluate FILE as a Nix expression. FILE is a path, a lookup path, a URL, or a flake reference, and it may end with '#' and an attribute path. (default: |
|
|
Pass the value of the Nix expression EXPR as the argument NAME to the function that --file names. Repeatable. (default: |
|
|
Pass the string STRING as the argument NAME to the function that --file names. Repeatable. (default: |
|
|
Pass the JSON value JSON as the argument NAME to the function that --file names. Repeatable. (default: |
|
|
Pass each key of the JSON object JSON as an argument to the function that --file names. '@FILE' reads the object from FILE. (default: |
|
|
Dot-separated attribute path within the evaluation result. (default: |
|
|
Evaluate FLAKE, optionally with a '#'-separated attribute path. (default: |
|
|
Evaluate a flake impurely: allow the environment, mutable paths and builtins.currentSystem. (default: |
|
|
Store URI to build with. (default: |
|
|
Print build log lines to stderr. (default: |
|
|
Run this program from the directory of the resolved program, instead of the resolved program. A name that is not there fails with the names that are. (default: |
|
|
Build the program for Linux and run it in a VM that this command starts on Apple's Virtualization.framework. The VM mounts $HOME at the same path, and the program starts in the current directory. Apple silicon and macOS 26 or later, and the host /nix must be case-sensitive. (default: |
|
|
The manifest of the --linux-builder guest: the store path that |
|
|
The system that --linux-builder evaluates for. x86_64-linux runs through Rosetta. (default: |
|
|
Arguments for the program, after --. (default: |
pynix sbom¶
Build a package, and print a Software Bill of Materials for it
The SBOM lists the runtime closure of the default outputs, with the license, source, hashes and patches of each package. --buildtime adds the build closure. The JSON goes to stdout.
Examples:
pynix sbom --flake nixpkgs#hello
pynix sbom --file '
Argument |
Type |
Help |
|---|---|---|
|
|
Set the Nix configuration setting NAME to VALUE (overriding nix.conf). Repeatable. (default: |
|
|
Nix log verbosity: error, warn, notice, info, talkative, chatty, debug, vomit, or 0-7. (default: |
|
|
Evaluate FILE as a Nix expression. FILE is a path, a lookup path, a URL, or a flake reference, and it may end with '#' and an attribute path. (default: |
|
|
Pass the value of the Nix expression EXPR as the argument NAME to the function that --file names. Repeatable. (default: |
|
|
Pass the string STRING as the argument NAME to the function that --file names. Repeatable. (default: |
|
|
Pass the JSON value JSON as the argument NAME to the function that --file names. Repeatable. (default: |
|
|
Pass each key of the JSON object JSON as an argument to the function that --file names. '@FILE' reads the object from FILE. (default: |
|
|
Dot-separated attribute path within the evaluation result. (default: |
|
|
Evaluate FLAKE, optionally with a '#'-separated attribute path. (default: |
|
|
Evaluate a flake impurely: allow the environment, mutable paths and builtins.currentSystem. (default: |
|
|
Store URI to build with. (default: |
|
|
Print build log lines to stderr. (default: |
|
|
CycloneDX 1.7 JSON, or SPDX 2.3 JSON. SPDX takes its creation time from SOURCE_DATE_EPOCH when it is set. (default: |
|
|
Also list the build closure: compilers, build tools and sources. (default: |
|
|
A CSV of NVD vendor and product names (github.com/tiiuae/cpedict). A package that states no CPE lists the one its product name suggests, as evidence in CycloneDX. (default: |
pynix search¶
Search the NixOS options and the packages of one target.
Argument |
Type |
Help |
|---|---|---|
|
|
Set the Nix configuration setting NAME to VALUE (overriding nix.conf). Repeatable. (default: |
|
|
Nix log verbosity: error, warn, notice, info, talkative, chatty, debug, vomit, or 0-7. (default: |
|
|
Search query. Omit to just (re)build the index. (default: |
|
|
Evaluate FILE as a Nix expression. FILE is a path, a lookup path, a URL, or a flake reference, and it may end with '#' and an attribute path. (default: |
|
|
Pass the value of the Nix expression EXPR as the argument NAME to the function that --file names. Repeatable. (default: |
|
|
Pass the string STRING as the argument NAME to the function that --file names. Repeatable. (default: |
|
|
Pass the JSON value JSON as the argument NAME to the function that --file names. Repeatable. (default: |
|
|
Pass each key of the JSON object JSON as an argument to the function that --file names. '@FILE' reads the object from FILE. (default: |
|
|
Dot-separated attribute path within the evaluation result. (default: |
|
|
Evaluate FLAKE, optionally with a '#'-separated attribute path. (default: |
|
|
Evaluate a flake impurely: allow the environment, mutable paths and builtins.currentSystem. (default: |
|
|
Search the NixOS module options only. Without this and --packages, the search reads whichever of the two the target offers. (default: |
|
|
Search the packages only. Without this and --options, the search reads whichever of the two the target offers. (default: |
|
|
Attribute path to the options tree, relative to the target. The default tries 'options'. (default: |
|
|
Attribute path to nixpkgs lib, relative to the target. The default tries 'lib', then the 'lib' of the package set that the target holds. (default: |
|
|
Attribute path to the package set, relative to the target. The default tries 'pkgs', then '_module.args.pkgs', and then the target itself. (default: |
|
|
The system whose binaries the package index answers for. The default is this machine. (default: |
|
|
The channel to read programs.sqlite from, when the nixpkgs of the target carries none. (default: |
|
|
Re-evaluate and rebuild the cached index instead of using it. (default: |
|
|
Maximum number of results to print. (default: |
|
|
Print results as JSON instead of a human-readable list. (default: |
|
|
Browse the results in a full-screen interface. The default opens it for a person at a terminal who gave no query, and prints a list otherwise. (default: |
|
|
Store URI to evaluate with. (default: |
pynix shell¶
Run a shell in which the named packages are available
Each package's bin directory goes on PATH, with the packages it propagates. Without --file, each installable is a flake reference; with --file, each is an attribute path in that file.
Examples:
pynix env shell nixpkgs#jq nixpkgs#hello
pynix env shell nixpkgs#git --command git log -- README.md
pynix env shell --file '
Argument |
Type |
Help |
|---|---|---|
|
|
Set the Nix configuration setting NAME to VALUE (overriding nix.conf). Repeatable. (default: |
|
|
Nix log verbosity: error, warn, notice, info, talkative, chatty, debug, vomit, or 0-7. (default: |
|
|
Flake references, or attribute paths of --file. (default: |
|
|
Evaluate FILE as a Nix expression. FILE is a path, a lookup path, a URL, or a flake reference, and it may end with '#' and an attribute path. (default: |
|
|
Evaluate a flake impurely: allow the environment, mutable paths and builtins.currentSystem. (default: |
|
|
Pass the value of the Nix expression EXPR as the argument NAME to the function that --file names. Repeatable. (default: |
|
|
Pass the string STRING as the argument NAME to the function that --file names. Repeatable. (default: |
|
|
Pass the JSON value JSON as the argument NAME to the function that --file names. Repeatable. (default: |
|
|
Pass each key of the JSON object JSON as an argument to the function that --file names. '@FILE' reads the object from FILE. (default: |
|
|
Store URI to build with. (default: |
|
|
Print build log lines to stderr. (default: |
|
|
Command and arguments to run, instead of $SHELL. Takes every argument after it. (default: |
pynix store¶
Manage the Nix store
pynix store gc¶
Manage Nix store garbage collection
pynix store gc print-roots¶
List the garbage collector roots
Argument |
Type |
Help |
|---|---|---|
|
|
Set the Nix configuration setting NAME to VALUE (overriding nix.conf). Repeatable. (default: |
|
|
Nix log verbosity: error, warn, notice, info, talkative, chatty, debug, vomit, or 0-7. (default: |
|
|
Store URI to query. (default: |
pynix store gc print-dead¶
List paths that would be removed by a garbage collection. Use --rip to actually delete them.
Argument |
Type |
Help |
|---|---|---|
|
|
Set the Nix configuration setting NAME to VALUE (overriding nix.conf). Repeatable. (default: |
|
|
Nix log verbosity: error, warn, notice, info, talkative, chatty, debug, vomit, or 0-7. (default: |
|
|
Actually delete the dead store paths instead of just listing them. (default: |
|
|
Store URI to query. (default: |
pynix store gc print-alive¶
List live paths in the store (reachable from GC roots)
Argument |
Type |
Help |
|---|---|---|
|
|
Set the Nix configuration setting NAME to VALUE (overriding nix.conf). Repeatable. (default: |
|
|
Nix log verbosity: error, warn, notice, info, talkative, chatty, debug, vomit, or 0-7. (default: |
|
|
Store URI to query. (default: |
pynix store info¶
Show store metadata
Argument |
Type |
Help |
|---|---|---|
|
|
Set the Nix configuration setting NAME to VALUE (overriding nix.conf). Repeatable. (default: |
|
|
Nix log verbosity: error, warn, notice, info, talkative, chatty, debug, vomit, or 0-7. (default: |
|
|
Store URI to query. (default: |
pynix store dirs¶
Show configured local store directories
Argument |
Type |
Help |
|---|---|---|
|
|
Set the Nix configuration setting NAME to VALUE (overriding nix.conf). Repeatable. (default: |
|
|
Nix log verbosity: error, warn, notice, info, talkative, chatty, debug, vomit, or 0-7. (default: |
|
|
Store URI to query. (default: |
pynix store is-valid-path¶
Check whether a store path is valid
Argument |
Type |
Help |
|---|---|---|
|
|
Set the Nix configuration setting NAME to VALUE (overriding nix.conf). Repeatable. (default: |
|
|
Nix log verbosity: error, warn, notice, info, talkative, chatty, debug, vomit, or 0-7. (default: |
|
|
Store path to check. (required) |
|
|
Store URI to query. (default: |
pynix store follow-links-to-store-path¶
Resolve symlinks to a store path
Argument |
Type |
Help |
|---|---|---|
|
|
Set the Nix configuration setting NAME to VALUE (overriding nix.conf). Repeatable. (default: |
|
|
Nix log verbosity: error, warn, notice, info, talkative, chatty, debug, vomit, or 0-7. (default: |
|
|
Filesystem path to resolve. (required) |
|
|
Store URI to query. (default: |
pynix store compute-fs-closure¶
Compute the filesystem closure of a store path
Argument |
Type |
Help |
|---|---|---|
|
|
Set the Nix configuration setting NAME to VALUE (overriding nix.conf). Repeatable. (default: |
|
|
Nix log verbosity: error, warn, notice, info, talkative, chatty, debug, vomit, or 0-7. (default: |
|
|
Store path to query. (required) |
|
|
Compute the inverse closure. (default: |
|
|
Include derivation outputs. (default: |
|
|
Include derivers. (default: |
|
|
Store URI to query. (default: |
pynix store query-missing¶
Show which paths would need building, substituting, or are unknown
Argument |
Type |
Help |
|---|---|---|
|
|
Set the Nix configuration setting NAME to VALUE (overriding nix.conf). Repeatable. (default: |
|
|
Nix log verbosity: error, warn, notice, info, talkative, chatty, debug, vomit, or 0-7. (default: |
|
|
Store paths to query. (default: |
|
|
Store URI to query. (default: |
pynix store query-derivation-outputs¶
Show the outputs of a derivation path
Argument |
Type |
Help |
|---|---|---|
|
|
Set the Nix configuration setting NAME to VALUE (overriding nix.conf). Repeatable. (default: |
|
|
Nix log verbosity: error, warn, notice, info, talkative, chatty, debug, vomit, or 0-7. (default: |
|
|
Derivation path to query. (required) |
|
|
Store URI to query. (default: |
pynix store query-valid-derivers¶
Show valid derivers for a store path
Argument |
Type |
Help |
|---|---|---|
|
|
Set the Nix configuration setting NAME to VALUE (overriding nix.conf). Repeatable. (default: |
|
|
Nix log verbosity: error, warn, notice, info, talkative, chatty, debug, vomit, or 0-7. (default: |
|
|
Store path to query. (required) |
|
|
Store URI to query. (default: |
pynix store list-valid-paths¶
List all valid paths in the store
Argument |
Type |
Help |
|---|---|---|
|
|
Set the Nix configuration setting NAME to VALUE (overriding nix.conf). Repeatable. (default: |
|
|
Nix log verbosity: error, warn, notice, info, talkative, chatty, debug, vomit, or 0-7. (default: |
|
|
Store URI to query. (default: |
pynix store query-referrers¶
Show referrers of a store path
Argument |
Type |
Help |
|---|---|---|
|
|
Set the Nix configuration setting NAME to VALUE (overriding nix.conf). Repeatable. (default: |
|
|
Nix log verbosity: error, warn, notice, info, talkative, chatty, debug, vomit, or 0-7. (default: |
|
|
Store path to query. (required) |
|
|
Store URI to query. (default: |
pynix store query-substitutable-paths¶
Show which paths are substitutable
Argument |
Type |
Help |
|---|---|---|
|
|
Set the Nix configuration setting NAME to VALUE (overriding nix.conf). Repeatable. (default: |
|
|
Nix log verbosity: error, warn, notice, info, talkative, chatty, debug, vomit, or 0-7. (default: |
|
|
Store paths to query. (default: |
|
|
Store URI to query. (default: |
pynix store add-temp-root¶
Add a temporary GC root for this command's store session
Argument |
Type |
Help |
|---|---|---|
|
|
Set the Nix configuration setting NAME to VALUE (overriding nix.conf). Repeatable. (default: |
|
|
Nix log verbosity: error, warn, notice, info, talkative, chatty, debug, vomit, or 0-7. (default: |
|
|
Store path to root temporarily. (required) |
|
|
Store URI to use. (default: |
pynix store add-perm-root¶
Add a permanent GC root symlink
Argument |
Type |
Help |
|---|---|---|
|
|
Set the Nix configuration setting NAME to VALUE (overriding nix.conf). Repeatable. (default: |
|
|
Nix log verbosity: error, warn, notice, info, talkative, chatty, debug, vomit, or 0-7. (default: |
|
|
Store path to root. (required) |
|
|
GC root symlink to create. (required) |
|
|
Store URI to use. (default: |
pynix store add-indirect-root¶
Register an indirect GC root
Argument |
Type |
Help |
|---|---|---|
|
|
Set the Nix configuration setting NAME to VALUE (overriding nix.conf). Repeatable. (default: |
|
|
Nix log verbosity: error, warn, notice, info, talkative, chatty, debug, vomit, or 0-7. (default: |
|
|
GC root path to register. (required) |
|
|
Store URI to use. (default: |
pynix store path-from-hash-part¶
Resolve a store path from its hash prefix
Argument |
Type |
Help |
|---|---|---|
|
|
Set the Nix configuration setting NAME to VALUE (overriding nix.conf). Repeatable. (default: |
|
|
Nix log verbosity: error, warn, notice, info, talkative, chatty, debug, vomit, or 0-7. (default: |
|
|
Store path hash prefix to resolve. (required) |
|
|
Store URI to query. (default: |
pynix store ensure-path¶
Ensure a store path is valid, substituting it if available
Argument |
Type |
Help |
|---|---|---|
|
|
Set the Nix configuration setting NAME to VALUE (overriding nix.conf). Repeatable. (default: |
|
|
Nix log verbosity: error, warn, notice, info, talkative, chatty, debug, vomit, or 0-7. (default: |
|
|
Store path to ensure. (required) |
|
|
Store URI to use. (default: |
pynix store cat¶
Print a file inside a local Nix store path
Argument |
Type |
Help |
|---|---|---|
|
|
Set the Nix configuration setting NAME to VALUE (overriding nix.conf). Repeatable. (default: |
|
|
Nix log verbosity: error, warn, notice, info, talkative, chatty, debug, vomit, or 0-7. (default: |
|
|
File path to print. (required) |
|
|
Store URI to use. (default: |
pynix store ls¶
List files inside a local Nix store path
Argument |
Type |
Help |
|---|---|---|
|
|
Set the Nix configuration setting NAME to VALUE (overriding nix.conf). Repeatable. (default: |
|
|
Nix log verbosity: error, warn, notice, info, talkative, chatty, debug, vomit, or 0-7. (default: |
|
|
File or directory path to list. (required) |
|
|
Print machine-readable JSON. (default: |
|
|
Store URI to use. (default: |
pynix store add¶
Add a file or directory to a Nix store
Argument |
Type |
Help |
|---|---|---|
|
|
Set the Nix configuration setting NAME to VALUE (overriding nix.conf). Repeatable. (default: |
|
|
Nix log verbosity: error, warn, notice, info, talkative, chatty, debug, vomit, or 0-7. (default: |
|
|
Filesystem path to add. (required) |
|
|
Override the store path name component. (default: |
|
|
Content-addressing method. (default: |
|
|
Hash algorithm to use. (default: |
|
|
Compute the store path without adding the content. (default: |
|
|
Store URI to use. (default: |
pynix store add-file¶
Add a single file to a Nix store
Argument |
Type |
Help |
|---|---|---|
|
|
Set the Nix configuration setting NAME to VALUE (overriding nix.conf). Repeatable. (default: |
|
|
Nix log verbosity: error, warn, notice, info, talkative, chatty, debug, vomit, or 0-7. (default: |
|
|
Filesystem path to add. (required) |
|
|
Override the store path name component. (default: |
|
|
Hash algorithm to use. (default: |
|
|
Compute the store path without adding the content. (default: |
|
|
Store URI to use. (default: |
pynix store add-path¶
Add a path to a Nix store using NAR ingestion
Argument |
Type |
Help |
|---|---|---|
|
|
Set the Nix configuration setting NAME to VALUE (overriding nix.conf). Repeatable. (default: |
|
|
Nix log verbosity: error, warn, notice, info, talkative, chatty, debug, vomit, or 0-7. (default: |
|
|
Filesystem path to add. (required) |
|
|
Override the store path name component. (default: |
|
|
Hash algorithm to use. (default: |
|
|
Compute the store path without adding the content. (default: |
|
|
Store URI to use. (default: |
pynix store prefetch-file¶
Download a file into the Nix store
Argument |
Type |
Help |
|---|---|---|
|
|
Set the Nix configuration setting NAME to VALUE (overriding nix.conf). Repeatable. (default: |
|
|
Nix log verbosity: error, warn, notice, info, talkative, chatty, debug, vomit, or 0-7. (default: |
|
|
URL of the file to download. (required) |
|
|
Override the name component of the resulting store path. It defaults to the base name of URL. (default: |
|
|
The expected hash of the file. When the store already holds a file with this hash, nothing is downloaded. (default: |
|
|
Hash algorithm to use. It also reads a bare --expected-hash. (default: |
|
|
Make the resulting file executable. The hash is then a NAR hash, not a flat file hash. (default: |
|
|
Unpack the archive (a tarball or a zip file) and add the result to the store. (default: |
|
|
Store URI to use. (default: |
pynix store diff-closures¶
Compare two filesystem closures
Argument |
Type |
Help |
|---|---|---|
|
|
Set the Nix configuration setting NAME to VALUE (overriding nix.conf). Repeatable. (default: |
|
|
Nix log verbosity: error, warn, notice, info, talkative, chatty, debug, vomit, or 0-7. (default: |
|
|
Original store path. (required) |
|
|
New store path. (required) |
|
|
Store URI to query. (default: |
pynix store optimise¶
Optimise store disk usage by hard-linking duplicate files
Argument |
Type |
Help |
|---|---|---|
|
|
Set the Nix configuration setting NAME to VALUE (overriding nix.conf). Repeatable. (default: |
|
|
Nix log verbosity: error, warn, notice, info, talkative, chatty, debug, vomit, or 0-7. (default: |
|
|
Store URI to optimise. (default: |
pynix store delete¶
Delete paths from the Nix store, when no garbage collector root reaches them
Argument |
Type |
Help |
|---|---|---|
|
|
Set the Nix configuration setting NAME to VALUE (overriding nix.conf). Repeatable. (default: |
|
|
Nix log verbosity: error, warn, notice, info, talkative, chatty, debug, vomit, or 0-7. (default: |
|
|
Store paths to operate on. Give none when --file or --flake names the target. (default: |
|
|
Evaluate FILE as a Nix expression. FILE is a path, a lookup path, a URL, or a flake reference, and it may end with '#' and an attribute path. (default: |
|
|
Pass the value of the Nix expression EXPR as the argument NAME to the function that --file names. Repeatable. (default: |
|
|
Pass the string STRING as the argument NAME to the function that --file names. Repeatable. (default: |
|
|
Pass the JSON value JSON as the argument NAME to the function that --file names. Repeatable. (default: |
|
|
Pass each key of the JSON object JSON as an argument to the function that --file names. '@FILE' reads the object from FILE. (default: |
|
|
Dot-separated attribute path within the evaluation result. (default: |
|
|
Evaluate FLAKE, optionally with a '#'-separated attribute path. (default: |
|
|
Evaluate a flake impurely: allow the environment, mutable paths and builtins.currentSystem. (default: |
|
|
Apply operation to closure of the specified paths. (default: |
|
|
Apply the operation to every store path. (default: |
|
|
Store URI to operate on. (default: |
|
|
Do not check whether the paths are reachable from a root. (default: |
|
|
Do not emit errors when attempting to delete something that is still alive, useful with --recursive. (default: |
|
|
Also allow deletion of any referrers of the specified paths. (default: |
pynix store verify¶
Verify the integrity of store paths
Argument |
Type |
Help |
|---|---|---|
|
|
Set the Nix configuration setting NAME to VALUE (overriding nix.conf). Repeatable. (default: |
|
|
Nix log verbosity: error, warn, notice, info, talkative, chatty, debug, vomit, or 0-7. (default: |
|
|
Store paths to operate on. Give none when --file or --flake names the target. (default: |
|
|
Evaluate FILE as a Nix expression. FILE is a path, a lookup path, a URL, or a flake reference, and it may end with '#' and an attribute path. (default: |
|
|
Pass the value of the Nix expression EXPR as the argument NAME to the function that --file names. Repeatable. (default: |
|
|
Pass the string STRING as the argument NAME to the function that --file names. Repeatable. (default: |
|
|
Pass the JSON value JSON as the argument NAME to the function that --file names. Repeatable. (default: |
|
|
Pass each key of the JSON object JSON as an argument to the function that --file names. '@FILE' reads the object from FILE. (default: |
|
|
Dot-separated attribute path within the evaluation result. (default: |
|
|
Evaluate FLAKE, optionally with a '#'-separated attribute path. (default: |
|
|
Evaluate a flake impurely: allow the environment, mutable paths and builtins.currentSystem. (default: |
|
|
Apply operation to closure of the specified paths. (default: |
|
|
Apply the operation to every store path. (default: |
|
|
Store URI to operate on. (default: |
|
|
Do not verify the contents of each store path. (default: |
|
|
Do not verify whether each store path is trusted. (default: |
|
|
Use signatures from the specified store. (default: |
|
|
Require that each path is signed by at least N different keys. (default: |
pynix store sign¶
Sign store paths with a local key
Argument |
Type |
Help |
|---|---|---|
|
|
Set the Nix configuration setting NAME to VALUE (overriding nix.conf). Repeatable. (default: |
|
|
Nix log verbosity: error, warn, notice, info, talkative, chatty, debug, vomit, or 0-7. (default: |
|
|
Store paths to operate on. Give none when --file or --flake names the target. (default: |
|
|
Evaluate FILE as a Nix expression. FILE is a path, a lookup path, a URL, or a flake reference, and it may end with '#' and an attribute path. (default: |
|
|
Pass the value of the Nix expression EXPR as the argument NAME to the function that --file names. Repeatable. (default: |
|
|
Pass the string STRING as the argument NAME to the function that --file names. Repeatable. (default: |
|
|
Pass the JSON value JSON as the argument NAME to the function that --file names. Repeatable. (default: |
|
|
Pass each key of the JSON object JSON as an argument to the function that --file names. '@FILE' reads the object from FILE. (default: |
|
|
Dot-separated attribute path within the evaluation result. (default: |
|
|
Evaluate FLAKE, optionally with a '#'-separated attribute path. (default: |
|
|
Evaluate a flake impurely: allow the environment, mutable paths and builtins.currentSystem. (default: |
|
|
Apply operation to closure of the specified paths. (default: |
|
|
Apply the operation to every store path. (default: |
|
|
Store URI to operate on. (default: |
|
|
File containing the secret signing key. (default: |
pynix store copy-sigs¶
Copy store path signatures from substituters
Argument |
Type |
Help |
|---|---|---|
|
|
Set the Nix configuration setting NAME to VALUE (overriding nix.conf). Repeatable. (default: |
|
|
Nix log verbosity: error, warn, notice, info, talkative, chatty, debug, vomit, or 0-7. (default: |
|
|
Store paths to operate on. Give none when --file or --flake names the target. (default: |
|
|
Evaluate FILE as a Nix expression. FILE is a path, a lookup path, a URL, or a flake reference, and it may end with '#' and an attribute path. (default: |
|
|
Pass the value of the Nix expression EXPR as the argument NAME to the function that --file names. Repeatable. (default: |
|
|
Pass the string STRING as the argument NAME to the function that --file names. Repeatable. (default: |
|
|
Pass the JSON value JSON as the argument NAME to the function that --file names. Repeatable. (default: |
|
|
Pass each key of the JSON object JSON as an argument to the function that --file names. '@FILE' reads the object from FILE. (default: |
|
|
Dot-separated attribute path within the evaluation result. (default: |
|
|
Evaluate FLAKE, optionally with a '#'-separated attribute path. (default: |
|
|
Evaluate a flake impurely: allow the environment, mutable paths and builtins.currentSystem. (default: |
|
|
Apply operation to closure of the specified paths. (default: |
|
|
Apply the operation to every store path. (default: |
|
|
Store URI to operate on. (default: |
|
|
Copy signatures from the specified store. (default: |
pynix why-depends¶
Show the chain of references that puts one store path in the closure of another
Argument |
Type |
Help |
|---|---|---|
|
|
Set the Nix configuration setting NAME to VALUE (overriding nix.conf). Repeatable. (default: |
|
|
Nix log verbosity: error, warn, notice, info, talkative, chatty, debug, vomit, or 0-7. (default: |
|
|
Store path whose closure to search (e.g. '/nix/store/hash-name'). (required) |
|
|
Store path to find in that closure. (required) |
|
|
For each link of the chain, name the file that holds the reference. Needs a local store. (default: |
|
|
Store URI to query. (default: |