System-wide changes may be placed in /etc/rc.local - before the final exit 0 line there. Don't know if that is an optimal or even usable place to set keyboard layout, though.