May I ask how to specify a git branch (I have main) in:
nixos-rebuild switch --flake 'git+ssh://git@example.uk/srv/local/git/nixos-configuration.git'#myconfig --target-host root@87.x.x.x
like if it were github:
"github:NixOS/nixpkgs/nixos-21.11"
^^^^^^^^^^^ - this is the branch
none of these work:
git+ssh://git@example.uk/srv/local/git/nixos-configuration.git#main
git+ssh://git@example.uk/srv/local/git/nixos-configuration.git/main
git+ssh://git@example.uk/srv/local/git/nixos-configuration.git/refs/heads/main