Home Explore Blog Models CI



nix

1st chunk of `src/nix/flake-prefetch-inputs.md`
a6eb8b4edf2833253c580e8eab8d30bffba104aeeae765e50000000100000186
R""(

# Examples

* Fetch the inputs of the `hydra` flake:

  ```console
  # nix flake prefetch-inputs github:NixOS/hydra
  ```

# Description

Fetch the inputs of a flake. This ensures that they are already available for any subsequent evaluation of the flake.

This operation is recursive: it will fetch not just the direct inputs of the top-level flake, but also transitive inputs.

)""

Title: nix flake prefetch-inputs: Fetching Flake Inputs
Summary
The `nix flake prefetch-inputs` command is used to fetch all inputs, including transitive ones, for a specified Nix flake. This action ensures that all necessary flake inputs are pre-downloaded and available for any subsequent evaluation of the flake, speeding up future operations.