e472aa016e
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>
21 lines
392 B
Nix
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
|