nixpkgs/nixos/modules
aszlig 6cfb3b6364
nixos/tests: Use a patched QEMU for testing
The reason to patch QEMU is that with latest Nix, tests like "printing"
or "misc" fail because they expect the store paths to be owned by uid 0
and gid 0.

Starting with NixOS/nix@5e51ffb1c2, Nix
builds inside of a new user namespace. Unfortunately this also means
that bind-mounted store paths that are part of the derivation's inputs
are no longer owned by uid 0 and gid 0 but by uid 65534 and gid 65534.

This in turn causes things like sudo or cups to fail with errors about
insecure file permissions.

So in order to avoid that, let's make sure the VM always gets files
owned by uid 0 and gid 0 and does a no-op when doing a chmod on a store
path.

In addition, this adds a virtualisation.qemu.program option so that we
can make sure that we only use the patched version if we're *really*
running NixOS VM tests (that is, whenever we have imported
test-instrumentation.nix).

Tested against the "misc" and "printing" tests.

Signed-off-by: aszlig <aszlig@redmoonstudios.org>
2016-11-17 17:16:16 +01:00
..
config vulkan-loader: allow validation layers to be enabled 2016-11-13 12:44:27 -04:00
hardware vulkan-loader: allow validation layers to be enabled 2016-11-13 12:44:27 -04:00
i18n/input-method ibus: refresh cache at startup 2016-10-03 05:25:41 -05:00
installer virtualbox-demo: Add modesetting to drivers 2016-11-07 14:36:41 -06:00
misc services: Add Interplanetary File System service 2016-11-07 22:01:38 +01:00
profiles treewide: sshfsFuse -> sshfs-fuse 2016-09-18 17:44:30 +02:00
programs adb: init module 2016-10-31 11:30:07 +01:00
security grsecurity: fix 'isYes' and 'isNo' 2016-10-29 14:26:06 +03:00
services Merge pull request #20384 from ericsagnes/feat/bspwm-refactor 2016-11-17 15:37:07 +01:00
system grub module: use enum 2016-11-04 13:05:13 +09:00
tasks network-interfaces module: use enum 2016-11-04 13:05:44 +09:00
testing nixos/tests: Use a patched QEMU for testing 2016-11-17 17:16:16 +01:00
virtualisation nixos/tests: Use a patched QEMU for testing 2016-11-17 17:16:16 +01:00
module-list.nix bspwm module: refactor 2016-11-14 00:41:05 +09:00
rename.nix dockerRegistry module: re-init with new underlying software 2016-10-12 14:05:09 +02:00