forked from mirrors/nixpkgs
4a8fc5b9aa
This was getting evaluated eagerly causing assertion failures in aarch64 systems. We can replace usages of pkgs_i686 with pkgs.pkgsi686Linux.
40 lines
838 B
Nix
40 lines
838 B
Nix
# This module provides the proprietary ATI X11 / OpenGL drivers.
|
|
|
|
{ config, lib, pkgs, ... }:
|
|
|
|
with lib;
|
|
|
|
let
|
|
|
|
drivers = config.services.xserver.videoDrivers;
|
|
|
|
enabled = elem "ati_unfree" drivers;
|
|
|
|
ati_x11 = config.boot.kernelPackages.ati_drivers_x11;
|
|
|
|
in
|
|
|
|
{
|
|
|
|
config = mkIf enabled {
|
|
|
|
nixpkgs.config.xorg.abiCompat = "1.17";
|
|
|
|
services.xserver.drivers = singleton
|
|
{ name = "fglrx"; modules = [ ati_x11 ]; libPath = [ "${ati_x11}/lib" ]; };
|
|
|
|
hardware.opengl.package = ati_x11;
|
|
hardware.opengl.package32 = pkgs.pkgsi686Linux.linuxPackages.ati_drivers_x11.override { libsOnly = true; kernel = null; };
|
|
|
|
environment.systemPackages = [ ati_x11 ];
|
|
|
|
boot.extraModulePackages = [ ati_x11 ];
|
|
|
|
boot.blacklistedKernelModules = [ "radeon" ];
|
|
|
|
environment.etc."ati".source = "${ati_x11}/etc/ati";
|
|
|
|
};
|
|
|
|
}
|