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
9 lines
200 B
Nix
9 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; };
|
|
}
|