How to change the default macOS login window keyboard layout?
In Terminal, run this to copy your keyboard settings to the default settings:
sudo cp ~/Library/Preferences/com.apple.HIToolbox.plist /Library/Preferences/
via Change the default keyboard of OSX login screen permanently