custom.customKeyboardLayouts.compose_tlde = { desc = "Compose is TLDE"; src = builtins.toFile "compose_tlde" '' default partial modifier_keys xkb_symbols "tlde" { key { type[Group1]="TWO_LEVEL", [ Multi_key, Multi_key ] }; }; ''; }; services.xserver.xkbOptions = "ctrl:nocaps,grp:shifts_toggle,level3:ralt_switch,compose_tlde";