fix logic

This commit is contained in:
Googlebot 2023-02-07 00:51:39 -05:00
parent 2a7130d13a
commit 458c1628ee

View file

@ -331,7 +331,7 @@ in
modules = optionals (igpuDriver == "amdgpu") [ pkgs.xorg.xf86videoamdgpu ];
deviceSection = ''
BusID "${igpuBusId}"
${optionalString (pCfg.enable && igpuDriver != "amdgpu") ''Option "AccelMethod" "none"''}
${optionalString (syncCfg.enable && igpuDriver != "amdgpu") ''Option "AccelMethod" "none"''}
'';
} ++ singleton {
name = "nvidia";