547: 16ach6h: Add tags for Dual-Direct GFX (DDG) specialisation r=Mic92 a=LostAttractor



Co-authored-by: ChaosAttractor <lostattractor@gmail.com>
This commit is contained in:
bors[bot] 2023-01-24 08:52:21 +00:00 committed by GitHub
commit ba8fc4a279
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -4,7 +4,8 @@
imports = [ ./hybrid ]; imports = [ ./hybrid ];
specialisation.ddg.configuration = { specialisation.ddg.configuration = {
# This specialisation is for the case where "DDG" (A hardware feature that can enable in bios) is enabled, since the amd igpu is blocked at hardware level and the built-in display is directly connected to the dgpu, we no longer need the amdgpu and prime configuration. # This specialisation is for the case where "DDG" (Dual-Direct GFX, A hardware feature that can enable in bios) is enabled, since the amd igpu is blocked at hardware level and the built-in display is directly connected to the dgpu, we no longer need the amdgpu and prime configuration.
system.nixos.tags = [ "Dual-Direct-GFX-Mode" ];
services.xserver.videoDrivers = [ "nvidia" ]; # This will override services.xserver.videoDrivers = lib.mkDefault [ "amdgpu" "nvidia" ]; services.xserver.videoDrivers = [ "nvidia" ]; # This will override services.xserver.videoDrivers = lib.mkDefault [ "amdgpu" "nvidia" ];
hardware.nvidia.prime.offload.enable = false; hardware.nvidia.prime.offload.enable = false;
}; };