From b4821ece01818a4702b332e9bc54b093c50d5d7a Mon Sep 17 00:00:00 2001 From: Vladimír Čunát Date: Sun, 21 Aug 2016 11:58:14 +0200 Subject: nixos: blacklist radeon module if using amdgpu --- nixos/modules/hardware/video/amdgpu.nix | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 nixos/modules/hardware/video/amdgpu.nix (limited to 'nixos/modules/hardware') 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" ]; + }; +} + -- cgit 1.4.1