about summary refs log tree commit diff
path: root/nixos/modules/hardware
diff options
context:
space:
mode:
authorVladimír Čunát <vcunat@gmail.com>2016-08-21 11:58:14 +0200
committerVladimír Čunát <vcunat@gmail.com>2016-08-21 11:58:14 +0200
commitb4821ece01818a4702b332e9bc54b093c50d5d7a (patch)
treea6fc4701dd6bef36b951c72ffed2039784ee8e40 /nixos/modules/hardware
parentab95a3ff7fdef556e35508677e5d104224be041a (diff)
downloadnixlib-b4821ece01818a4702b332e9bc54b093c50d5d7a.tar
nixlib-b4821ece01818a4702b332e9bc54b093c50d5d7a.tar.gz
nixlib-b4821ece01818a4702b332e9bc54b093c50d5d7a.tar.bz2
nixlib-b4821ece01818a4702b332e9bc54b093c50d5d7a.tar.lz
nixlib-b4821ece01818a4702b332e9bc54b093c50d5d7a.tar.xz
nixlib-b4821ece01818a4702b332e9bc54b093c50d5d7a.tar.zst
nixlib-b4821ece01818a4702b332e9bc54b093c50d5d7a.zip
nixos: blacklist radeon module if using amdgpu
Diffstat (limited to 'nixos/modules/hardware')
-rw-r--r--nixos/modules/hardware/video/amdgpu.nix9
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 000000000000..42fc8fa362de
--- /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" ];
+  };
+}
+