nixos-vm: switch to qemu for disk images too :)
grub: Add mdadm to search path.

Grub uses mdadm to find out the device it is on, especially when mdadm itself
resides in a separate boot partition. When bootstrapping from a NixOS
installation CD, it's not a big issue because usually the paths from the Nix
store of the installation CD are matching with the ones in the chrooted
environment.

Signed-off-by: aszlig <aszlig@redmoonstudios.org>
Start httpd synchronously

This ensures that when "start httpd" returns, Apache is actually
listening.

http://hydra.nixos.org/build/5499393
Give more memory to the KDE test

http://hydra.nixos.org/build/5499387
Fix the rebuildCD test

http://hydra.nixos.org/build/5500743
Remove outdated comment

Password-based remote root logins are not allowed anyway.
Fix the sshd check in the rebuildCD test

Also reduce the amount of memory.
systemd-vconsole-setup: Add missing wantedBy

Reported by Kirill Elagin.
Installer test: Give the webserver more memory

Otherwise its unionfs may run into allocation failures.

http://hydra.nixos.org/build/5508805
Bump the amount of memory for VirtualBox image generation

http://hydra.nixos.org/build/5509519
Give the webserver in the installer test still more memory

http://hydra.nixos.org/build/5510269
mysql/mysql55: Log to stderr instead of logfile.

This should integrate the logging more tightly into systemd, so for
example "systemctl status mysql" actually gives an overview about what's
actually going on.

This removes the logError option attribute, so in case you still want to
write into a logfile, I've introduced an option called extraOptions, so
you can use something like:

services.mysql*.extraOptions = ''
  log-error = /var/log/mysql_err.log
'';

Signed-off-by: aszlig <aszlig@redmoonstudios.org>
postgresql: Log to stderr by default.

Now systemctl status will properly pick up the right logs.

Signed-off-by: aszlig <aszlig@redmoonstudios.org>
postgresql: Add initialScript for initial SQL.

Just like in the MySQL service module it really makes sense to provide a
way to inject SQL on the first start of the database cluster.

Signed-off-by: aszlig <aszlig@redmoonstudios.org>
postgresql: Allow to specify recoveryConfig.

This is needed for streaming replication in PostgreSQL 9.0 and higher.

Signed-off-by: aszlig <aszlig@redmoonstudios.org>
Use "or"
nixos-rebuild: Support Nix's --repair flag
wpa_supplicant: Fix wlan interface detection on Linux 3.4

Linux 3.4 apparently doesn't have the "wireless" file.
Initial wireless configuration docs
don't try to re-import pools on service change

When nixos-rebuild grabs a new kernel, it will build new spl/zfs
modules, which will change the service. On completion nixos will try and
restart the services which will try and import pools again, and
generally will fail.

The pools are already imported, we don't need to do it again..