nixos/xen: add types
This commit is contained in:
parent
4015c5ca9c
commit
d7c39c01ae
|
@ -57,7 +57,8 @@ in
|
||||||
|
|
||||||
virtualisation.xen.bootParams =
|
virtualisation.xen.bootParams =
|
||||||
mkOption {
|
mkOption {
|
||||||
default = "";
|
default = [];
|
||||||
|
type = types.listOf types.str;
|
||||||
description =
|
description =
|
||||||
''
|
''
|
||||||
Parameters passed to the Xen hypervisor at boot time.
|
Parameters passed to the Xen hypervisor at boot time.
|
||||||
|
@ -68,6 +69,7 @@ in
|
||||||
mkOption {
|
mkOption {
|
||||||
default = 0;
|
default = 0;
|
||||||
example = 512;
|
example = 512;
|
||||||
|
type = types.addCheck types.int (n: n >= 0);
|
||||||
description =
|
description =
|
||||||
''
|
''
|
||||||
Amount of memory (in MiB) allocated to Domain 0 on boot.
|
Amount of memory (in MiB) allocated to Domain 0 on boot.
|
||||||
|
@ -78,6 +80,7 @@ in
|
||||||
virtualisation.xen.bridge = {
|
virtualisation.xen.bridge = {
|
||||||
name = mkOption {
|
name = mkOption {
|
||||||
default = "xenbr0";
|
default = "xenbr0";
|
||||||
|
type = types.str;
|
||||||
description = ''
|
description = ''
|
||||||
Name of bridge the Xen domUs connect to.
|
Name of bridge the Xen domUs connect to.
|
||||||
'';
|
'';
|
||||||
|
|
Loading…
Reference in a new issue