anchor.diff:              -initrd ${config.system.build.toplevel}/initrd \
               -append "$(cat ${config.system.build.toplevel}/kernel-params) init=${config.system.build.toplevel}/init regInfo=${regInfo} ${kernelConsole} $QEMU_KERNEL_PARAMS" \
             ''} \
  +          $extraDisks \
             ${qemuGraphics} \
             ${toString config.virtualisation.qemu.options} \
             $QEMU_OPTS
  
positive.code:           '';
        };
  
      virtualisation.graphics =
        mkOption {
          default = true;
  
negative.code:       "
  
        ${pkgs.vmTools.startSamba}
  
        idx=2
        extraDisks=""
        ${flip concatMapStrings cfg.emptyDiskImages (size: ''
          ${pkgs.qemu_kvm}/bin/qemu-img create -f raw "empty$idx" "${toString size}M"
          extraDisks="$extraDisks -drive index=$idx,file=$(pwd)/empty$idx,if=virtio,werror=report"
          idx=$((idx + 1))
        '')}
  
        # Start QEMU.
        # "-boot menu=on" is there, because I don't know how to make qemu boot from 2nd hd.
  