nixpkgs/nixos/tests/run-in-machine.nix
Eelco Dolstra 6dafee8d67 Fix runInMachine
It requires a writable /nix/store to store the build result.  Also,
wait until we've reached multi-user.target before doing the build, and
do a sync at the end to ensure all data to $out is properly written.

http://hydra.nixos.org/build/6496716
2013-10-16 11:37:38 +02:00

8 lines
200 B
Nix

{ system ? builtins.currentSystem }:
with import ../lib/testing.nix { inherit system; };
runInMachine {
drv = pkgs.patchelf;
machine = { config, pkgs, ... }: { services.sshd.enable = true; };
}