nix flake new
create a flake in the specified directory from a template
- Provided by: nix-bin (Version: 2.6.0+dfsg-3)
- Source: nix
- Report a bug
create a flake in the specified directory from a template
Warning: This program is experimental and its interface is subject to change.
nix flake new [option…] dest-dir
# nix flake new hello
# nix flake show templates
# nix flake new hello -t templates#trivial
This command creates a flake in the directory dest-dir, which must not already exist. It’s equivalent to:
# mkdir dest-dir # cd dest-dir # nix flake init
Common evaluation options: