Nix command/flake new

From NixOS Wiki
Jump to: navigation, search

This article is about the nix flake new subcommand.

Description

Create a flake in the specified directory from a template.

Usage

$ nix flake new FLAGS... DEST-DIR

Flags

  • --arg NAME EXPR argument to be passed to Nix functions
  • --argstr NAME STRING string-valued argument to be passed to Nix functions
  • --impure allow access to mutable paths and repositories
  • -I, --include PATH add a path to the list of locations used to look up <...> file names
  • --override-flake ORIGINAL-REF RESOLVED-REF override a flake registry value
  • -t, --template TEMPLATE the template to use

See also