anchor.diff:      
       waitForSSHD
   
  +    nixBuildTest
  +
       # INSTALLATION
       INFO "creating filesystem .."
       SSH_STDIN_E << EOF
  -      set -x
         parted /dev/sda mklabel msdos
         parted /dev/sda mkpart primary 0 2G
         parted /dev/sda mkpart primary 1G 3G
  
positive.code:     # Is there a way to use kvm when not running as root?
      # Would using uml provide any advantages?
  
      # TODO add nix-env -i command and verify that root can install additional
      # tools such as git or sshfs-fuse!
      pkgs.runCommand "nixos-installation-test" { inherit systemDerivation; } ''
  
      INFO(){ echo "INFO: " $@; }
  
  
negative.code:     cat >> run-kvm.sh << EOF
      #!/bin/sh -e
  
      exec qemu-system-x86_64 -m 512 \
          -no-kvm-irqchip \
          -net nic,model=virtio -net user -smb /nix \
          -hda image \
          -redir tcp:''${SOCKET_NAME/.socket/}::22 \
          $KVM_OPTIONS \
          "\$@"
      EOF
      chmod +x run-kvm.sh
  