LinuxCommandLibrary

nix3-flake

Manage Nix flakes.

TLDR

See documentation about what Nix flakes are

$ nix flake --help
copy


Create a new flake (just the flake.nix file) from the default template, in the current directory
$ nix flake init
copy


Update all inputs (dependencies) of the flake in the current directory
$ nix flake update
copy


Update a specific input (dependency) of the flake in the current directory
$ nix flake lock --update-input [input]
copy


Show all the outputs of a flake on github
$ nix flake show [github:owner/repo]
copy

Copied to clipboard