LinuxCommandLibrary

nix-flake

manages Nix flakes

TLDR

Show flake info

$ nix flake show
copy
Update flake inputs
$ nix flake update
copy
Lock flake inputs
$ nix flake lock
copy
Initialize new flake
$ nix flake init
copy
Check flake
$ nix flake check
copy
Show flake metadata
$ nix flake metadata
copy
Clone flake
$ nix flake clone [github:owner/repo]
copy

SYNOPSIS

nix flake [command] [options]

DESCRIPTION

nix flake manages Nix flakes. Flakes provide reproducible, hermetic packages.
The tool handles flake.nix files. Manages inputs and outputs.

PARAMETERS

COMMAND

Flake subcommand.
show
Show flake outputs.
update
Update inputs.
lock
Lock inputs.
init
Initialize flake.
check
Validate flake.
--help
Display help information.

CAVEATS

Requires experimental features. flake.nix required. Lock file generated.

HISTORY

Nix flakes were introduced in Nix 2.4 to provide reproducible and composable package definitions.

SEE ALSO

> TERMINAL_GEAR

Curated for the Linux community

Copied to clipboard

> TERMINAL_GEAR

Curated for the Linux community