git.iko.soy/typeable/nixpkgs
on master help sign in
nixos: blacklist radeon module if using amdgpu
commitb4821ece01818a4702b332e9bc54b093c50d5d7a authorVladimír Čunát <vcunat@gmail.com> dateSun 21 Aug 2016, 11:58 (10 years ago) parentab95a3f
2 files changed+11−1
nixos/modules/hardware/video/amdgpu.nix+9 nixos/modules/module-list.nix+2−1
nixos/modules/hardware/video/amdgpu.nixnew file+9
@@ -0,0 +1,9 @@
1+{ config, lib, ... }:
2+
3+with lib;
4+{
5+ config = mkIf (elem "amdgpu" config.services.xserver.videoDrivers) {
6+ boot.blacklistedKernelModules = [ "radeon" ];
7+ };
8+}
9+
nixos/modules/module-list.nix+2−1
@@ -37,9 +37,10 @@
3737 ./hardware/network/rtl8192c.nix
3838 ./hardware/opengl.nix
3939 ./hardware/pcmcia.nix
40+ ./hardware/video/amdgpu.nix
41+ ./hardware/video/ati.nix
4042 ./hardware/video/bumblebee.nix
4143 ./hardware/video/nvidia.nix
42− ./hardware/video/ati.nix
4344 ./hardware/video/webcam/facetimehd.nix
4445 ./i18n/input-method/default.nix
4546 ./i18n/input-method/fcitx.nix