nixos ati_unfree: auto-switch xorg to fglrxComat

Changed files
+3 -1
nixos
modules
hardware
video
pkgs
top-level
+2
nixos/modules/hardware/video/ati.nix
···
config = mkIf enabled {
+
nixpkgs.config.xorg.fglrxCompat = true;
+
services.xserver.drivers = singleton
{ name = "fglrx"; modules = [ ati_x11 ]; libPath = [ "${ati_x11}/lib" ]; };
+1 -1
pkgs/top-level/all-packages.nix
···
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 { };