nixos ati_unfree: auto-switch xorg to fglrxComat

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