nixpkgs/nixos/modules
aszlig 44c64fef16
nixos/xserver: Improve checking keyboard layout
Enumerating the symbols directory doesn't include variants, so we're now
basically doing what "localectl list-x11-keymap-layouts" does but we use
sed instead.

The reason I'm not using localectl directly is because the path to
rules/base.lst is hardcoded in the systemd source.

Of course, the XKB specification allows for much more complicated rules,
but at least this should cover the most basic ones including variants.

So the sed expression itself is just for listing the available layouts
and variants and we use a grep with -xF to match only full lines without
interpreting regular expressions.

This should again allow to set "dvorak" as the layout option.

Signed-off-by: aszlig <aszlig@redmoonstudios.org>
Cc: @lheckemann
Fixes: #25526
2017-06-22 03:24:28 +02:00
..
config systemd-resolved: fix case when dnsmasq is used as local resolver 2017-05-31 23:30:35 +01:00
hardware nvidia module: link proper output as OpenGL drivers 2017-05-31 16:30:21 +03:00
i18n/input-method Remove top-level kde5 attribute 2017-02-27 11:49:10 -06:00
installer nix: 1.11.10 -> 1.11.11 2017-06-19 19:03:39 +02:00
misc Merge pull request #26191 from romildo/fix.mlocate 2017-06-10 11:56:26 +01:00
profiles hardware.enableRedistributableFirmware: fix spelling error 2017-05-09 20:13:15 +01:00
programs Merge pull request #26605 from mayflower/disable-ssh-agent 2017-06-18 22:03:59 +02:00
security Fixing attribute name mistake: setguid => setgid 2017-06-15 19:25:43 -07:00
service-managers Simple proof of concept for how to do other types of services 2017-05-26 18:14:31 -04:00
services nixos/xserver: Improve checking keyboard layout 2017-06-22 03:24:28 +02:00
system Merge pull request #26460 from romildo/fix.nixos-artwork 2017-06-13 23:20:52 +01:00
tasks Merge pull request #26170 from kirelagin/wlan-fix 2017-06-17 15:31:22 +01:00
testing kdm: drop service 2017-02-11 13:55:09 -05:00
virtualisation lxd: 2.0.2 -> 2.12 (#25685) 2017-05-24 19:29:38 +01:00
module-list.nix Remove aiccu package and service due to sunsetting. 2017-06-15 06:58:08 +02:00
rename.nix programs.zsh: rename oh-my-zsh to ohMyZsh 2017-05-25 10:51:26 +02:00