From 2cc37c17d9313a22c5f4f2acbdd5b665c53f9f3c Mon Sep 17 00:00:00 2001 From: Eelco Dolstra Date: Mon, 28 Oct 2013 00:08:42 +0100 Subject: [PATCH] openvpn.nix: Improve types --- nixos/modules/services/networking/openvpn.nix | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/nixos/modules/services/networking/openvpn.nix b/nixos/modules/services/networking/openvpn.nix index 1e862591406d..8cc19506e21b 100644 --- a/nixos/modules/services/networking/openvpn.nix +++ b/nixos/modules/services/networking/openvpn.nix @@ -117,11 +117,11 @@ in type = types.attrsOf types.optionSet; - options = { + options = { config = mkOption { - type = types.string; - description = '' + type = types.lines; + description = '' Configuration of this OpenVPN instance. See openvpn8 for details. @@ -130,7 +130,7 @@ in up = mkOption { default = ""; - type = types.string; + type = types.lines; description = '' Shell commands executed when the instance is starting. ''; @@ -138,7 +138,7 @@ in down = mkOption { default = ""; - type = types.string; + type = types.lines; description = '' Shell commands executed when the instance is shutting down. '';