Nix Flake and private repository (again)

You can specify a branch by appending a ?ref=<branch> parameter, e.g.

git+ssh://git@git.example.com/User/repo.git?ref=master

See the “Flake references” section of nix flake --help for more info on how references should be formatted.

2 Likes