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