diff --git a/flake.nix b/flake.nix index 5070ba3..17eb1da 100644 --- a/flake.nix +++ b/flake.nix @@ -12,7 +12,16 @@ ''; inputs = { - nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable"; + # Bare registry name, not a pinned github: ref: on a NixOS system with + # `nix.registry.nixpkgs.flake = inputs.nixpkgs;` in configuration.nix (the + # common flake-based-NixOS pattern), this resolves to that system's exact + # nixpkgs input instead of nixos-unstable HEAD - so anything built here + # that needs to match the running kernel (e.g. linuxPackages.v4l2loopback + # for docs/setup-linux.md step 7) matches it for real, not by coincidence. + # `nix flake update nixpkgs` re-resolves this (and re-locks it) whenever + # the system's own nixpkgs pin changes - it isn't automatically live on + # every build, only on explicit update, same as any other flake input. + nixpkgs.url = "nixpkgs"; pyproject-nix = { url = "github:pyproject-nix/pyproject.nix";