nix3-flake-clone(1)

πŸ’… nix3-flake-clone(1) πŸ’…

okay bestie, welcome to the nix3-flake-clone(1) manual page, we're doing this together 🫢

⚠️ Warning β€” this program is experimental and its interface is subject to change. fr fr, it might get a glow-up and change on you. πŸ’€

✨ Name ✨

nix flake clone β€” clone flake repository 🧬✨


🌸 Synopsis 🌸

nix flake clone [option…] flake-url

πŸŽ€ Examples πŸŽ€

okay so first up: check out the source code of the dwarffs flake and build it β€” iconic behaviour honestly:

# nix flake clone dwarffs --dest dwarffs
# cd dwarffs
# nix build

πŸ¦‹ Description πŸ¦‹

so what this command does is: it performs a Git or Mercurial clone of the repository containing the source code of the flake flake-url. literally just yoink, gimme the source πŸ’– no cap.


✨ Options ✨

  • --dest, -f path β€” clone the flake to dest, that's the path bestie 🎯

🌈 Common evaluation options 🌈

  • --arg name expr β€” pass the value expr as the argument name to Nix functions.
  • --arg-from-file name path β€” pass the contents of file path as the argument name to Nix functions.
  • --arg-from-stdin name β€” pass the contents of stdin as the argument name to Nix functions.
  • --argstr name string β€” pass the string string as the argument name to Nix functions.
  • --debugger β€” start an interactive environment if evaluation fails. it's giving we can fix this together 🫢
  • --eval-store store-url β€” the URL of the Nix store to use for evaluation, i.e. to store derivations (.drv files) and inputs referenced by them.
  • --impure β€” allow access to mutable paths and repositories. chaos mode, lowkey.
  • --include, -I path β€” add path to search path entries used to resolve lookup paths.

This option may be given multiple times. πŸ‘‘ (stack 'em, queen)

Paths added through -I take precedence over the nix-path configuration setting and the NIX_PATH environment variable.

  • --override-flake original-ref resolved-ref β€” override the flake registries, redirecting original-ref to resolved-ref. it's giving gaslight, gatekeep, girlboss but for refs πŸ’…

  • --commit-lock-file β€” commit changes to the flake's lock file.
  • --inputs-from flake-url β€” use the inputs of the specified flake as registry entries.
  • --no-registries β€” don't allow lookups in the flake registries.
DEPRECATED β€” use --no-use-registries instead. this one's sooo 2023 bestie 😭
  • --no-update-lock-file β€” do not allow any updates to the flake's lock file. lock it down πŸ”’
  • --no-write-lock-file β€” do not write the flake's newly generated lock file.
  • --output-lock-file flake-lock-path β€” write the given lock file instead of flake.lock within the top-level flake.
  • --override-input input-path flake-url β€” override a specific flake input (e.g. dwarffs/nixpkgs). The input-path must not be empty β€” no empty input paths, we don't do that here 🚫. This implies --no-write-lock-file.
  • --recreate-lock-file β€” recreate the flake's lock file from scratch.
DEPRECATED β€” use nix flake update instead. respectfully, retire her πŸ’€
  • --reference-lock-file flake-lock-path β€” read the given lock file instead of flake.lock within the top-level flake.
  • --update-input input-path β€” update a specific flake input (ignoring its previous entry in the lock file).
DEPRECATED β€” use nix flake update instead. okay girl we get it, move on 🌸

  • --debug β€” set the logging verbosity level to β€˜debug’. spill the tea, all of it 🍡
  • --log-format format β€” set the format of log output; one of raw, internal-json, bar or bar-with-logs.
  • --print-build-logs, -L β€” print full build logs on standard error.
  • --quiet β€” decrease the logging verbosity level. shhh 🀫
  • --verbose, -v β€” increase the logging verbosity level. louder πŸ“£

⭐ Miscellaneous global options ⭐

  • --help β€” show usage information.
  • --offline β€” disable substituters and consider all previously downloaded files up-to-date. airplane mode aesthetic ✈️
  • --option name value β€” set the Nix configuration setting name to value (overriding nix.conf).
  • --refresh β€” consider all previously downloaded files out-of-date.
  • --repair β€” during evaluation, rewrite missing or corrupted files in the Nix store. During building, rebuild missing or corrupted store paths. glow-up for your broken files πŸ’…βœ¨
  • --version β€” show version information.
πŸ“ Note β€” see man nix.conf for overriding configuration settings with command line flags. iykyk πŸ’–

and that's a wrap, bestie!! πŸŽ€ you just read the whole nix3-flake-clone(1) page and honestly?? slay. go clone a flake, you've earned it. mwah πŸ«ΆπŸ’–

~ nix3-flake-clone(1) ~

πŸ“¦ where this page comes from