commands.sh

nix flake init

all

Create a flake in the current directory from a template.

More info →

Options (1)

-t, --templateboolean

Create a new flake with a specified template (see `nix flake show` for information about templates)

Example: nix flake init {{[-t|--template]}} templates#{{your_template}}

Examples (2)

Create a new flake from the default template, in the current directory

Create a new flake with a specified template (see `nix flake show` for information about templates)

nix flake init [-t|--template] templates#your_template
made by @shridhargupta | data from tldr-pages