summary refs log tree commit diff
path: root/nixos/modules/services/networking/openvpn.nix
diff options
context:
space:
mode:
Diffstat (limited to 'nixos/modules/services/networking/openvpn.nix')
-rw-r--r--nixos/modules/services/networking/openvpn.nix10
1 files changed, 5 insertions, 5 deletions
diff --git a/nixos/modules/services/networking/openvpn.nix b/nixos/modules/services/networking/openvpn.nix
index 1e862591406..8cc19506e21 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
             <citerefentry><refentrytitle>openvpn</refentrytitle><manvolnum>8</manvolnum></citerefentry>
             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.
           '';