about summary refs log tree commit diff
path: root/nixos/modules/hardware
diff options
context:
space:
mode:
authorobadz <obadz-git@obadz.com>2016-08-21 12:03:41 +0100
committerobadz <obadz-git@obadz.com>2016-08-21 12:03:41 +0100
commit68936edfb3142b0e308ff8428e1c19d6bcd30843 (patch)
tree7f31407c203325a5c57996d534fc49b201493b92 /nixos/modules/hardware
parent15b07f4b8e23ef40b9bc84543d1f73f3c3e9cf79 (diff)
parentc2192c664ae25f82d8e06de4694aad7a806969b9 (diff)
downloadnixlib-68936edfb3142b0e308ff8428e1c19d6bcd30843.tar
nixlib-68936edfb3142b0e308ff8428e1c19d6bcd30843.tar.gz
nixlib-68936edfb3142b0e308ff8428e1c19d6bcd30843.tar.bz2
nixlib-68936edfb3142b0e308ff8428e1c19d6bcd30843.tar.lz
nixlib-68936edfb3142b0e308ff8428e1c19d6bcd30843.tar.xz
nixlib-68936edfb3142b0e308ff8428e1c19d6bcd30843.tar.zst
nixlib-68936edfb3142b0e308ff8428e1c19d6bcd30843.zip
Merge branch 'master' into staging
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" ];
+  };
+}
+