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,-fpath β clone the flake to dest, that's thepathbestie π―
π Common evaluation options π
--argname expr β pass the value expr as the argument name to Nix functions.--arg-from-filename path β pass the contents of file path as the argument name to Nix functions.--arg-from-stdinname β pass the contents of stdin as the argument name to Nix functions.--argstrname 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-storestore-url β the URL of the Nix store to use for evaluation, i.e. to store derivations (.drvfiles) and inputs referenced by them.--impureβ allow access to mutable paths and repositories. chaos mode, lowkey.--include,-Ipath β 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-flakeoriginal-ref resolved-ref β override the flake registries, redirecting original-ref to resolved-ref. it's giving gaslight, gatekeep, girlboss but for refs π
π§ Common flake-related options π§
--commit-lock-fileβ commit changes to the flake's lock file.--inputs-fromflake-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-fileflake-lock-path β write the given lock file instead offlake.lockwithin the top-level flake.--override-inputinput-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-fileflake-lock-path β read the given lock file instead offlake.lockwithin the top-level flake.--update-inputinput-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 πΈ
π Logging-related options π
--debugβ set the logging verbosity level to βdebugβ. spill the tea, all of it π΅--log-formatformat β set the format of log output; one ofraw,internal-json,barorbar-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 βοΈ--optionname value β set the Nix configuration setting name to value (overridingnix.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 π«Άπ
π¦ where this page comes from
- fedora 44: nix-core 2.35.3-2.fc44 Β· LGPL-2.1-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms