anchor.diff:  
       services.xserver.serverLayoutSection = optionalString syncCfg.enable ''
         Inactive "Device-modesetting[0]"
  +    '' + optionalString offloadCfg.enable ''
  +      Option "AllowNVIDIAGPUScreens"
       '';
   
       services.xserver.displayManager.setupCommands = optionalString syncCfg.enable ''
  
positive.code:     # - Configure the display manager to run specific `xrandr` commands which will
      #   configure/enable displays connected to the Intel GPU.
  
      services.xserver.drivers = optional syncCfg.enable {
        name = "modesetting";
        display = false;
        deviceSection = ''
          BusID "${pCfg.intelBusId}"
          Option "AccelMethod" "none"
        '';
      } ++ singleton {
        name = "nvidia";
        modules = [ nvidia_x11.bin ];
        display = true;
        deviceSection = optionalString syncCfg.enable
          ''
            BusID "${pCfg.nvidiaBusId}"
            ${optionalString syncCfg.allowExternalGpu "Option \"AllowExternalGpus\""}
  
negative.code:   cfg = config.hardware.nvidia;
    pCfg = cfg.prime;
    syncCfg = pCfg.sync;
    offloadCfg = pCfg.offload;
    primeEnabled = syncCfg.enable || offloadCfg.enable;
  in
  
  {
  