nixos ati_unfree: auto-switch xorg to fglrxComat

+3 -1
+2
nixos/modules/hardware/video/ati.nix
··· 18 19 config = mkIf enabled { 20 21 services.xserver.drivers = singleton 22 { name = "fglrx"; modules = [ ati_x11 ]; libPath = [ "${ati_x11}/lib" ]; }; 23
··· 18 19 config = mkIf enabled { 20 21 + nixpkgs.config.xorg.fglrxCompat = true; 22 + 23 services.xserver.drivers = singleton 24 { name = "fglrx"; modules = [ ati_x11 ]; libPath = [ "${ati_x11}/lib" ]; }; 25
+1 -1
pkgs/top-level/all-packages.nix
··· 10268 mesa = mesa_noglu; 10269 udev = if stdenv.isLinux then udev else null; 10270 libdrm = if stdenv.isLinux then libdrm else null; 10271 - fglrxCompat = false; 10272 } // { inherit xlibsWrapper; } ); 10273 10274 xwayland = callPackage ../servers/x11/xorg/xwayland.nix { };
··· 10268 mesa = mesa_noglu; 10269 udev = if stdenv.isLinux then udev else null; 10270 libdrm = if stdenv.isLinux then libdrm else null; 10271 + fglrxCompat = config.xorg.fglrxCompat or false; # `config` because we have no `xorg.override` 10272 } // { inherit xlibsWrapper; } ); 10273 10274 xwayland = callPackage ../servers/x11/xorg/xwayland.nix { };