The calamares-nixos package has a fix for setting the keyboard layout through gsettings but this patch is only applied in the code path used when Calamares is not relying on systemd's localed to set the keymap. Configuring Calamares to not use locale1 forces it to go through the code path that uses xkbmap and that has the nixos specific patch. This can probably be done more cleanly upstream but we're not sure we'll keep using the Calamares installer for deskOS anyway.
		
			
				
	
	
		
			22 lines
		
	
	
		
			807 B
		
	
	
	
		
			Plaintext
		
	
	
	
	
	
			
		
		
	
	
			22 lines
		
	
	
		
			807 B
		
	
	
	
		
			Plaintext
		
	
	
	
	
	
# SPDX-FileCopyrightText: no
 | 
						|
# SPDX-License-Identifier: CC0-1.0
 | 
						|
#
 | 
						|
# NOTE: you must have ckbcomp installed and runnable
 | 
						|
#       on the live system, for keyboard layout previews.
 | 
						|
---
 | 
						|
# The name of the file to write X11 keyboard settings to
 | 
						|
# The default value is the name used by upstream systemd-localed.
 | 
						|
# Relative paths are assumed to be relative to /etc/X11/xorg.conf.d
 | 
						|
xOrgConfFileName: "/etc/X11/xorg.conf.d/00-keyboard.conf"
 | 
						|
 | 
						|
# The path to search for keymaps converted from X11 to kbd format
 | 
						|
# Leave this empty if the setting does not make sense on your distribution.
 | 
						|
#convertedKeymapPath: "/lib/kbd/keymaps/xkb"
 | 
						|
 | 
						|
# Write keymap configuration to /etc/default/keyboard, usually
 | 
						|
# found on Debian-related systems.
 | 
						|
# Defaults to true if nothing is set.
 | 
						|
writeEtcDefaultKeyboard:   false
 | 
						|
 | 
						|
useLocale1: false
 |