anchor.diff:      RUN_KVM -boot c
       waitForSSHD
   
  -
  -    INFO "verifying that nix-env -i works"
  -
  -    SSH_STDIN_E << EOF
  -
  -      cat >> test.nix << EOF_TEST
  -      let pkgs = import /etc/nixos/nixpkgs/pkgs/top-level/all-packages.nix {};
  -      in pkgs.stdenv.mkDerivation {
  -        name = "test";
  -        phases = "create_out";
  -        create_out = "mkdir -p $out/ok";
  -      }
  -    EOF_TEST
  -
  -      set -x
  -      nix-env -i -f test.nix
  -      [ -e ~/.nix-profile/ok ]
  -    EOF
  +    nixBuildTest
   
       SHUTDOWN_VM
   
  
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: 
    # TODO test both: copyKernels = true and false. true doesn't work ?
  
    debug = if false then ''
      export DISPLAY=localhost:0.0
    ''
    else
    # That's crazy: You see nothing but your computer is doing a *lot* of work :-)
    ''
      KVM_OPTIONS="-nographic"
    '';
  
  in
  
  rec {
  