nixos ati_unfree: auto-switch xorg to fglrxComat

This commit is contained in:
Vladimír Čunát 2016-05-23 10:12:44 +02:00
parent ff2d137410
commit 05a36304ea
2 changed files with 3 additions and 1 deletions

View File

@ -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" ]; };

View File

@ -10268,7 +10268,7 @@ in
mesa = mesa_noglu;
udev = if stdenv.isLinux then udev else null;
libdrm = if stdenv.isLinux then libdrm else null;
fglrxCompat = false;
fglrxCompat = config.xorg.fglrxCompat or false; # `config` because we have no `xorg.override`
} // { inherit xlibsWrapper; } );
xwayland = callPackage ../servers/x11/xorg/xwayland.nix { };