diff options
author | Vladimír Čunát <vcunat@gmail.com> | 2016-06-05 00:52:06 +0200 |
---|---|---|
committer | Vladimír Čunát <vcunat@gmail.com> | 2016-06-05 00:52:06 +0200 |
commit | a03ff26080488d40c4d493aa9386460728fb8fd5 (patch) | |
tree | 1a15b2b72907ae242ebcdfa7e95bff51edaf28ec /nixos/modules | |
parent | 405493e411f77debc172bd72a9683bfcb84944af (diff) | |
parent | e7080becfdfe6fbd827e18e6efb180be82c7c9b9 (diff) |
Merge #15639: xorg-server 1.17.4 -> 1.18.3
... and fglrxCompat to maintain compatibility.
Diffstat (limited to 'nixos/modules')
-rw-r--r-- | nixos/modules/hardware/video/ati.nix | 2 | ||||
-rw-r--r-- | nixos/modules/services/x11/xserver.nix | 12 |
2 files changed, 12 insertions, 2 deletions
diff --git a/nixos/modules/hardware/video/ati.nix b/nixos/modules/hardware/video/ati.nix index 033e49d2233ed..bf91bcf0776bb 100644 --- a/nixos/modules/hardware/video/ati.nix +++ b/nixos/modules/hardware/video/ati.nix @@ -18,6 +18,8 @@ in config = mkIf enabled { + nixpkgs.config.xorg.fglrxCompat = true; + services.xserver.drivers = singleton { name = "fglrx"; modules = [ ati_x11 ]; libPath = [ "${ati_x11}/lib" ]; }; diff --git a/nixos/modules/services/x11/xserver.nix b/nixos/modules/services/x11/xserver.nix index 82d3e31e2a016..35816c3a16ddd 100644 --- a/nixos/modules/services/x11/xserver.nix +++ b/nixos/modules/services/x11/xserver.nix @@ -463,7 +463,14 @@ in { source = "${cfg.xkbDir}"; target = "X11/xkb"; } - ]); + ]) + # Needed since 1.18; see https://bugs.freedesktop.org/show_bug.cgi?id=89023#c5 + ++ (let cfgPath = "/X11/xorg.conf.d/10-evdev.conf"; in + [{ + source = xorg.xf86inputevdev.out + "/share" + cfgPath; + target = cfgPath; + }] + ); environment.systemPackages = [ xorg.xorgserver.out @@ -479,6 +486,7 @@ in xorg.xauth pkgs.xterm pkgs.xdg_utils + xorg.xf86inputevdev.out # get evdev.4 man page ] ++ optional (elem "virtualbox" cfg.videoDrivers) xorg.xrefresh; @@ -538,7 +546,7 @@ in services.xserver.modules = concatLists (catAttrs "modules" cfg.drivers) ++ [ xorg.xorgserver.out - xorg.xf86inputevdev + xorg.xf86inputevdev.out ]; services.xserver.xkbDir = mkDefault "${pkgs.xkeyboard_config}/etc/X11/xkb"; |