tvl-depot/third_party/nix/test-vm.nix
Griffin Smith e472aa016e feat(tvix): Expose depot in the test vm
Expose depot to the test vm via NIX_PATH, so we can test the build of
depot packages from inside the test vm.

Change-Id: I26314634895ab1339f5715c0b0b261028eefdaa3
Reviewed-on: https://cl.tvl.fyi/c/depot/+/1923
Tested-by: BuildkiteCI
Reviewed-by: tazjin <mail@tazj.in>
2020-09-01 01:07:11 +00:00

21 lines
392 B
Nix

{ depot, pkgs, ... }:
let
configuration = { ... }: {
imports = [
"${pkgs.nixpkgsSrc}/nixos/modules/installer/cd-dvd/installation-cd-minimal.nix"
];
nix.package = depot.third_party.nix;
virtualisation.qemu.options = [ "-nographic" ];
nix.nixPath = [
"depot=${depot.depotPath}"
];
};
system = pkgs.nixos { inherit configuration; };
in system.vm