diff options
author | David McFarland <corngood@gmail.com> | 2018-01-09 20:49:55 -0400 |
---|---|---|
committer | David McFarland <corngood@gmail.com> | 2018-01-12 00:09:15 -0400 |
commit | 68dda232d2ca09a6609f8dfd5d24d8c195617d24 (patch) | |
tree | cdc38c50d17409892088a98b417ec0910be1cdc6 /nixos/modules/hardware | |
parent | 6d3ff29d038c05eab7c6989f88906912489e2ad9 (diff) | |
download | nixlib-68dda232d2ca09a6609f8dfd5d24d8c195617d24.tar nixlib-68dda232d2ca09a6609f8dfd5d24d8c195617d24.tar.gz nixlib-68dda232d2ca09a6609f8dfd5d24d8c195617d24.tar.bz2 nixlib-68dda232d2ca09a6609f8dfd5d24d8c195617d24.tar.lz nixlib-68dda232d2ca09a6609f8dfd5d24d8c195617d24.tar.xz nixlib-68dda232d2ca09a6609f8dfd5d24d8c195617d24.tar.zst nixlib-68dda232d2ca09a6609f8dfd5d24d8c195617d24.zip |
amdgpu-pro: 17.10 -> 17.40
Diffstat (limited to 'nixos/modules/hardware')
-rw-r--r-- | nixos/modules/hardware/video/amdgpu-pro.nix | 16 |
1 files changed, 15 insertions, 1 deletions
diff --git a/nixos/modules/hardware/video/amdgpu-pro.nix b/nixos/modules/hardware/video/amdgpu-pro.nix index 5cc96d8bd074..50af022b93c8 100644 --- a/nixos/modules/hardware/video/amdgpu-pro.nix +++ b/nixos/modules/hardware/video/amdgpu-pro.nix @@ -15,13 +15,19 @@ let opengl = config.hardware.opengl; + kernel = pkgs.linux_4_9.override { + extraConfig = '' + KALLSYMS_ALL y + ''; + }; + in { config = mkIf enabled { - nixpkgs.config.xorg.abiCompat = "1.18"; + nixpkgs.config.xorg.abiCompat = "1.19"; services.xserver.drivers = singleton { name = "amdgpu"; modules = [ package ]; libPath = [ package ]; }; @@ -31,6 +37,9 @@ in boot.extraModulePackages = [ package ]; + boot.kernelPackages = + pkgs.recurseIntoAttrs (pkgs.linuxPackagesFor kernel); + boot.blacklistedKernelModules = [ "radeon" ]; hardware.firmware = [ package ]; @@ -38,10 +47,15 @@ in system.activationScripts.setup-amdgpu-pro = '' mkdir -p /run/lib ln -sfn ${package}/lib ${package.libCompatDir} + ln -sfn ${package} /run/amdgpu-pro '' + optionalString opengl.driSupport32Bit '' ln -sfn ${package32}/lib ${package32.libCompatDir} ''; + system.requiredKernelConfig = with config.lib.kernelConfig; [ + (isYes "KALLSYMS_ALL") + ]; + environment.etc = { "amd/amdrc".source = package + "/etc/amd/amdrc"; "amd/amdapfxx.blb".source = package + "/etc/amd/amdapfxx.blb"; |