File tree Expand file tree Collapse file tree 2 files changed +9
-0
lines changed Expand file tree Collapse file tree 2 files changed +9
-0
lines changed Original file line number Diff line number Diff line change 6
6
let
7
7
inherit ( pkgs ) lib ;
8
8
inherit ( microvmConfig ) vcpu mem balloonMem user interfaces volumes shares socket devices hugepageMem graphics storeDisk storeOnDisk kernel initrdPath ;
9
+ inherit ( microvmConfig . cloud-hypervisor ) extraArgs ;
9
10
10
11
kernelPath = {
11
12
x86_64-linux = "${ kernel . dev } /vmlinux" ;
168
169
pci = "path=/sys/bus/pci/devices/${ path } " ;
169
170
usb = throw "USB passthrough is not supported on cloud-hypervisor" ;
170
171
} . ${ bus } ) devices )
172
+ ++
173
+ extraArgs
171
174
) ;
172
175
173
176
canShutdown = socket != null ;
Original file line number Diff line number Diff line change 407
407
'' ;
408
408
} ;
409
409
410
+ cloud-hypervisor . extraArgs = mkOption {
411
+ type = with types ; listOf str ;
412
+ default = [ ] ;
413
+ description = "Extra arguments to pass to cloud-hypervisor." ;
414
+ } ;
415
+
410
416
crosvm . extraArgs = mkOption {
411
417
type = with types ; listOf str ;
412
418
default = [ ] ;
You can’t perform that action at this time.
0 commit comments