Assign default values to service attrs in microvm-extras

Signed-off-by: magic_rb <richard@brezak.sk>
This commit is contained in:
magic_rb 2023-10-07 22:48:54 +02:00
parent c16147f323
commit 05cf178c7a
No known key found for this signature in database
GPG key ID: 08D5287CC5DDCA0E

View file

@ -91,14 +91,17 @@ in
services = { services = {
tcpUdp = mkOption { tcpUdp = mkOption {
type = with types; types.attrsOf (submodule tcpUdpServiceOptions); type = with types; types.attrsOf (submodule tcpUdpServiceOptions);
default = {};
}; };
icmp = mkOption { icmp = mkOption {
type = with types; types.attrsOf (submodule icmpServiceOptions); type = with types; types.attrsOf (submodule icmpServiceOptions);
default = {};
}; };
http = mkOption { http = mkOption {
type = with types; types.attrsOf (submodule httpServiceOptions); type = with types; types.attrsOf (submodule httpServiceOptions);
default = {};
}; };
}; };