Surely in the event of Indy the same arrangement would be made as was done in 1921 in Ireland - rUK to operate Faslane and other facilities as Sovereign Base Areas while Scotland stands up its own capabilities. It took almost two decades for the Treaty Ports to disappear in Ireland.
https://en.m.wikipedia.org/wiki/Treaty_Ports_(Ireland)