tvl-depot/third_party/nix/test-vm.nix
Andreas Rammhold 1ee3a7b2bf feat(tvix): run the test-vm with ncurses support
This allows users to use C-A C to access the QEMU console while within
the VM terminal. From there you can control the process (e.g. kill it).

Change-Id: If2eec2e385fd27fc4e20921dcad78be7390f9d2b
Reviewed-on: https://cl.tvl.fyi/c/depot/+/2167
Reviewed-by: glittershark <grfn@gws.fyi>
Tested-by: BuildkiteCI
2020-11-27 19:09:21 +00:00

21 lines
402 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" "-curses" ];
nix.nixPath = [
"depot=${depot.depotPath}"
];
};
system = pkgs.nixos { inherit configuration; };
in system.vm