From f8f4045498970b90b929e32cd9fee449d252427a Mon Sep 17 00:00:00 2001 From: notgne2 Date: Mon, 3 May 2021 03:26:44 -0700 Subject: [PATCH] only apply amdgpu to boot.initrd.kernelModules --- modules/ezpc.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/ezpc.nix b/modules/ezpc.nix index 65859d5..8bf82e7 100644 --- a/modules/ezpc.nix +++ b/modules/ezpc.nix @@ -46,7 +46,7 @@ let # automatic gfx drivers videoDrivers = mkIf (cfg.gfx != null) [ cfg.gfx ]; }; - boot.initrd.kernelModules = mkIf (cfg.gfx != null) [ cfg.gfx ]; + boot.initrd.kernelModules = mkIf (cfg.gfx != null && cfg.gfx == "amdgpu") [ cfg.gfx ]; security.pam.services = { swaylock.text = '' auth include login