LinuxCommandLibrary

nix-flake-init

creates a new flake

TLDR

Initialize default flake
$ nix flake init
copy
Initialize from template
$ nix flake init -t [templates#python]
copy
Initialize from GitHub template
$ nix flake init -t [github:owner/repo#template]
copy

SYNOPSIS

nix flake init [options]

DESCRIPTION

nix flake init creates a new flake.nix in the current directory. Initializes from templates for various project types. Part of Nix flakes for reproducible builds.

PARAMETERS

-t, --template flake

Template flake reference.

SEE ALSO

nix-flake(1), nix(1)

> TERMINAL_GEAR

Curated for the Linux community

Copied to clipboard