10 lines
		
	
	
	
		
			244 B
		
	
	
	
		
			Nix
		
	
	
	
	
	
			
		
		
	
	
			10 lines
		
	
	
	
		
			244 B
		
	
	
	
		
			Nix
		
	
	
	
	
	
| {lib}: let
 | |
|   inherit (lib.attrsets) mapAttrsToList;
 | |
|   inherit (lib.strings) concatStringsSep;
 | |
| in {
 | |
|   makeQemuNetOpts = portMapping:
 | |
|     concatStringsSep ","
 | |
|     (mapAttrsToList
 | |
|       (host: vm: "hostfwd=::${host}-:${vm}")
 | |
|       portMapping);
 | |
| }
 |