git.iko.soy/typeable/nixpkgs
on master help sign in
nixos/xserver: fix evaluation of xkbDir

I solved it this way because it seems the current state-of-the-art 89e983786 The problem was introduced in #11930. Close #11951 (a different solution).

commit5a2f0541a1ff3756bae30b0115c1610222858a8f authorVladimír Čunát <vcunat@gmail.com> dateSat 26 Dec 2015, 09:06 (11 years ago) parent37d0947
1 file changed+4−3
nixos/modules/services/x11/xserver.nix+4−3
nixos/modules/services/x11/xserver.nix+4−3
@@ -281,10 +281,9 @@ in
281281 };
282282
283283 xkbDir = mkOption {
284− type = types.str;
285− default = "${pkgs.xkeyboard_config}/etc/X11/xkb";
284+ type = types.path;
286285 description = ''
287− Path used for -xkbdir xserver parameter.
286+ Path used for -xkbdir xserver parameter.
288287 '';
289288 };
290289
@@ -548,6 +547,8 @@ in
548547 xorg.xf86inputevdev
549548 ];
550549
550+ services.xserver.xkbDir = mkDefault "${pkgs.xkeyboard_config}/etc/X11/xkb";
551+
551552 services.xserver.config =
552553 ''
553554 Section "ServerFlags"