virtualbox: Explicitly excempt src during install.

Instead of coping it to $out and later deleting it, we now exclude the
src directory during copy. Also, we no longer cd into the release
directory during installPhase, which should make sure that we are
constantly in $sourceRoot.

Signed-off-by: aszlig <aszlig@redmoonstudios.org>
virtualbox: Fix hardcoded /sbin/ifconfig path.

Just accidentally found this while debugging and it's needed for
fetching a few interface details, not sure however whether because of
this anything has been broken so far.

Signed-off-by: aszlig <aszlig@redmoonstudios.org>
synergy: Update to new upstream version 1.6.2.

Fixes the following bugs:

 * Helper tool crashes when service checks elevation state
 * Zeroconf on server advertises bogus IP address
 * Drag file causes client crash on Mac (10.10)

Introduces the following enhancements:

 * Optional Bonjour requirement for Windows
 * Automatic Bonjour download and install
 * Auto-config available servers combo box
 * More user friendly dialog when client is detected
 * Minimize auto config message box usage
 * Firewall exception for GUI (needed for Bonjour)
 * Consistent naming for auto config feature

Full changelog with bug IDs can be found at:

http://synergy-project.org/changelog/

Signed-off-by: aszlig <aszlig@redmoonstudios.org>
virtualbox: Allow to easily change the build type.

Not really changes anything in functionality, but makes it easier to
change the build type to "debug", for example.

Signed-off-by: aszlig <aszlig@redmoonstudios.org>
virtualbox: Fix runtime paths in hardening mode.

Because we have to rely on setuid wrappers on NixOS, we can't easily
hardcode the executable paths and set it 4755. So for all calls, we need
to change the runtime path executable directory to /var/setuid-wrappers/
and for verification we need to retain the executable directory.

Also note, that usually VBoxNetAdpCtl, VBoxNetDHCP, VBoxNetNAT, VBoxSDL
and VBoxVolInfo don't reside in directories that are commonly in PATH,
but in /usr/lib/virtualbox in most mainstream distros. But because the
names of these executables are distinctive enough to not cause
collisions with other setuid programs, I'll leave it like that and not
patch up setuid-wrappers.

Signed-off-by: aszlig <aszlig@redmoonstudios.org>
nixos/tests/blivet: Fix by avoiding "nix-store".

The "nix-store" command within the VM test is running without
NIX_REMOTE=daemon and since Nix 1.8 tries to open the store database in
read-write mode even for nix-store -qR.

Now, we're doing this properly and rely on setup hooks, which is the
same method that's used when you're building a library which depends on
blivet.

Signed-off-by: aszlig <aszlig@redmoonstudios.org>
nixos/tests/virtualbox: Don't use vboxusers group.

At least when we're running in hardening mode, because it's needed there
only for USB support.

Signed-off-by: aszlig <aszlig@redmoonstudios.org>
nixos/tests/virtualbox: Disable debug logging.

Especially if the user isn't in the vboxusers group anymore, this gets
VERY noisy, because the VBoxSVC process emits warnings for every single
USB device noting that it's only possible to access it when the user is
in the vboxusers group.

So, we now have a debug attribute, where we can enable it when
necessary.

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