Macos detected wrong keyboard layout
I'm using an external Logitech keyboard with a German layout but MacOS wrongly identified it as the '<' key (normally next to the left shift key) and the '^' key are switched in position, which is very annoying as a programmer.
I find proposed solutions for this problem by restarting the keyboard detection wizard but to do this I would have to delete the 'com.apple.keyboardtype.plist' file in Library/preferences/ but can't find it on my MacBook.
I also can't find any other way to change to the correct layout (The correct layout is not an option when trying to add a new input layout)
MacBook Air