anchor.diff:    enabled = nvidia_x11 != null;
   
     cfg = config.hardware.nvidia;
  +
     pCfg = cfg.prime;
     syncCfg = pCfg.sync;
     offloadCfg = pCfg.offload;
     primeEnabled = syncCfg.enable || offloadCfg.enable;
  +  nvidiaPersistencedEnabled =  cfg.nvidiaPersistenced;
   in
   
   {
  
positive.code:       ++ optional (nvidia_x11.persistenced != null && config.virtualisation.docker.enableNvidia)
          "L+ /run/nvidia-docker/extras/bin/nvidia-persistenced - - - - ${nvidia_x11.persistenced}/origBin/nvidia-persistenced";
  
      boot.extraModulePackages = [ nvidia_x11.bin ];
  
      # nvidia-uvm is required by CUDA applications.
  
negative.code:         If this is enabled, then the bus IDs of the NVIDIA and Intel GPUs have to be
          specified (<option>hardware.nvidia.prime.nvidiaBusId</option> and
          <option>hardware.nvidia.prime.intelBusId</option>).
        '';
      };
  
      hardware.nvidia.nvidiaPersistenced = mkOption {
        default = false;
        type = types.bool;
        description = ''
          Update for NVIDA GPU headless mode, i.e. nvidia-persistenced. It ensures all
          GPUs stay awake even during headless mode.
        '';
      };
    };
  