types.tinc.extraConfig: str -> lines

This commit is contained in:
lassulus 2022-01-29 20:50:32 +01:00
parent 510bfbc9b2
commit 9597300c4d

View File

@ -7,7 +7,7 @@ let
mkOptionType optional optionalAttrs optionals range splitString mkOptionType optional optionalAttrs optionals range splitString
stringLength substring test testString typeOf; stringLength substring test testString typeOf;
inherit (lib.types) inherit (lib.types)
attrsOf bool either enum int listOf nullOr path str submodule; attrsOf bool either enum int lines listOf nullOr path str submodule;
in in
rec { rec {
@ -211,7 +211,7 @@ rec {
extraConfig = mkOption { extraConfig = mkOption {
description = "Extra Configuration to be appended to the hosts file"; description = "Extra Configuration to be appended to the hosts file";
default = ""; default = "";
type = str; type = lines;
}; };
port = mkOption { port = mkOption {
type = int; type = int;