tinc module: networks, hosts option loaOf -> attrsOf

This commit is contained in:
Eric Sagnes 2016-11-16 16:32:02 +09:00
parent 2a9de9162f
commit b4d1d37b22

View File

@ -18,7 +18,7 @@ in
networks = mkOption { networks = mkOption {
default = { }; default = { };
type = with types; loaOf (submodule { type = with types; attrsOf (submodule {
options = { options = {
extraConfig = mkOption { extraConfig = mkOption {
@ -59,7 +59,7 @@ in
hosts = mkOption { hosts = mkOption {
default = { }; default = { };
type = types.loaOf types.lines; type = types.attrsOf types.lines;
description = '' description = ''
The name of the host in the network as well as the configuration for that host. The name of the host in the network as well as the configuration for that host.
This name should only contain alphanumerics and underscores. This name should only contain alphanumerics and underscores.