@@ -465,15 +465,23 @@ in
465465 }
466466 ];
467467
468− environment.etc = mkMerge [
469− (mkIf cfg.exportConfiguration {
470− "X11/xorg.conf".source = configFile;
471− "X11/xkb".source = cfg.xkbDir;
472− })
468+ environment.etc =
469+ (optionals cfg.exportConfiguration
470+ [ { source = "${configFile}";
471+ target = "X11/xorg.conf";
472+ }
473+ # -xkbdir command line option does not seems to be passed to xkbcomp.
474+ { source = "${cfg.xkbDir}";
475+ target = "X11/xkb";
476+ }
477+ ])
473478 # Needed since 1.18; see https://bugs.freedesktop.org/show_bug.cgi?id=89023#c5
474− (let cfgPath = "X11/xorg.conf.d/10-evdev.conf"; in
475− { "${cfgPath}".source = xorg.xf86inputevdev.out + "/share" + cfgPath; })
476− ];
479+ ++ (let cfgPath = "/X11/xorg.conf.d/10-evdev.conf"; in
480+ [{
481+ source = xorg.xf86inputevdev.out + "/share" + cfgPath;
482+ target = cfgPath;
483+ }]
484+ );
477485
478486 environment.systemPackages =
479487 [ xorg.xorgserver.out