tvl-depot/third_party/nix/test-vm.nix

22 lines
392 B
Nix
Raw Normal View History

{ 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