only apply amdgpu to boot.initrd.kernelModules

This commit is contained in:
notgne2 2021-05-03 03:26:44 -07:00
parent 2f3f2ce8ce
commit f8f4045498
No known key found for this signature in database
GPG Key ID: BB661E172B42A7F8

View File

@ -46,7 +46,7 @@ let
# automatic gfx drivers # automatic gfx drivers
videoDrivers = mkIf (cfg.gfx != null) [ cfg.gfx ]; 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 = { security.pam.services = {
swaylock.text = '' swaylock.text = ''
auth include login auth include login