Fix installer test

The installer now asks the user to set a root password if stdin is a
tty, which doesn't work for an interactive test.

http://hydra.nixos.org/build/11130072
nixos-install: Copy /etc/hosts

http://hydra.nixos.org/build/11130069