Flakes in nix 3.0

Problems

  • Implicit inputs
  • Implicit inputs to imported expressions
  • Hard to freeze/update dependencies
  • Few mechanisms

Channels and NIXPATH

What is nix 3.0?

Flakes schema

Flake reference syntax

github:NixOS/nixpkgs#package

Flake registry

Sample flake.nix

Special self input

Flake.lock

Links