diff options
author | Vladimír Čunát <vcunat@gmail.com> | 2016-08-21 11:58:14 +0200 |
---|---|---|
committer | Vladimír Čunát <vcunat@gmail.com> | 2016-08-21 11:58:14 +0200 |
commit | b4821ece01818a4702b332e9bc54b093c50d5d7a (patch) | |
tree | a6fc4701dd6bef36b951c72ffed2039784ee8e40 /nixos/modules/hardware | |
parent | ab95a3ff7fdef556e35508677e5d104224be041a (diff) |
nixos: blacklist radeon module if using amdgpu
Diffstat (limited to 'nixos/modules/hardware')
-rw-r--r-- | nixos/modules/hardware/video/amdgpu.nix | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/nixos/modules/hardware/video/amdgpu.nix b/nixos/modules/hardware/video/amdgpu.nix new file mode 100644 index 0000000000000..42fc8fa362de1 --- /dev/null +++ b/nixos/modules/hardware/video/amdgpu.nix @@ -0,0 +1,9 @@ +{ config, lib, ... }: + +with lib; +{ + config = mkIf (elem "amdgpu" config.services.xserver.videoDrivers) { + boot.blacklistedKernelModules = [ "radeon" ]; + }; +} + |