I ended up working this out. For anyone viewing this ticket in the future, do the following:
- Add
nixpkgs-unstable.url = "github:NixOS/nixpkgs/nixos-unstable";
to one’sinputs
- Add
nixos-unstable
to the arguments ofoutputs
. - Pass
nixos-unstable
to anyimport
statements below where you need it. - Add
nixos-unstable
to the argument list of any imported files where you have added thenixos-unstable
argument.
That will then generate an entry in flake.nix
the next time you run things. You can then manually edit the commit pin if you like.