diff options
author | Sandro <sandro.jaeckel@gmail.com> | 2021-01-31 15:27:37 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-01-31 15:27:37 +0100 |
commit | cf17c057b774996ebc4ae3e553ca723ad1d9fb73 (patch) | |
tree | abb1a8af81164463117d754a9320cfb9dcd28e7a | |
parent | a0829b1df88e6f4bedff3e3d44c0fa4835c1a4ec (diff) | |
parent | d7c39c01ae8636e0d24aa45fbaf891a7a719b409 (diff) |
Merge pull request #111461 from helsinki-systems/xen
nixos/xen: add types
-rw-r--r-- | nixos/modules/virtualisation/xen-dom0.nix | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/nixos/modules/virtualisation/xen-dom0.nix b/nixos/modules/virtualisation/xen-dom0.nix index 5ad647769bbd..5b57ca860da2 100644 --- a/nixos/modules/virtualisation/xen-dom0.nix +++ b/nixos/modules/virtualisation/xen-dom0.nix @@ -57,7 +57,8 @@ in virtualisation.xen.bootParams = mkOption { - default = ""; + default = []; + type = types.listOf types.str; description = '' Parameters passed to the Xen hypervisor at boot time. @@ -68,6 +69,7 @@ in mkOption { default = 0; example = 512; + type = types.addCheck types.int (n: n >= 0); description = '' Amount of memory (in MiB) allocated to Domain 0 on boot. @@ -78,6 +80,7 @@ in virtualisation.xen.bridge = { name = mkOption { default = "xenbr0"; + type = types.str; description = '' Name of bridge the Xen domUs connect to. ''; |