Jump to content

Translations:Flakes/183/en: Difference between revisions

From Official NixOS Wiki
FuzzyBot (talk | contribs)
Importing a new version from external source
Tags: Mobile edit Mobile web edit
 
(No difference)

Latest revision as of 12:07, 24 July 2025

Message definition (Flakes)
A flake is a directory which directly contains a Nix file called <code>flake.nix</code>, that follows a very specific structure. Flakes introduce a URL-like syntax{{Cite manual|nix|command-ref/new-cli/nix3-flake|number=8.5.17|title=nix flake|subsection=url-like-syntax|subtitle=URL-like syntax}} for specifying remote resources. To simplify the URL syntax, flakes use a registry of symbolic identifiers,{{Cite manual|nix|command-ref/new-cli/nix3-registry|number=8.5.62|title=nix registry}} allowing the direct specification of resources through syntax such as <code>github:NixOS/nixpkgs</code>.

A flake is a directory which directly contains a Nix file called flake.nix, that follows a very specific structure. Flakes introduce a URL-like syntax[1] for specifying remote resources. To simplify the URL syntax, flakes use a registry of symbolic identifiers,[2] allowing the direct specification of resources through syntax such as github:NixOS/nixpkgs.

  1. Nix Reference Manual, §8.5.17. nix flake, 📖︎ URL-like syntax subsection
  2. Nix Reference Manual, §8.5.62. 📖︎ nix registry