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 11
11
interfaces volumes shares devices
12
12
kernel initrdPath
13
13
storeDisk ;
14
+ inherit ( microvmConfig . firecracker ) cpu ;
14
15
15
16
kernelPath = {
16
17
x86_64-linux = "${ kernel . dev } /vmlinux" ;
60
61
else throw "Network interface type ${ type } not implemented for Firecracker"
61
62
) interfaces ;
62
63
vsock = null ;
64
+ } // lib . optionalAttrs ( cpu != null ) {
65
+ cpu-config = pkgs . writeText "cpu-config.json" ( builtins . toJSON cpu ) ;
63
66
} ;
64
67
65
68
configFile = pkgs . writers . writeJSON "firecracker-${ hostName } .json" config ;
Original file line number Diff line number Diff line change 533
533
description = "A Hypervisor's sandbox directory" ;
534
534
} ;
535
535
536
+ firecracker . cpu = mkOption {
537
+ type = with types ; nullOr attrs ;
538
+ default = null ;
539
+ description = "Custom CPU template passed to firecracker." ;
540
+ } ;
541
+
536
542
prettyProcnames = mkOption {
537
543
type = types . bool ;
538
544
default = true ;
You can’t perform that action at this time.
0 commit comments