summary refs log tree commit diff
path: root/nixos/modules/services/networking/openvpn.nix
diff options
context:
space:
mode:
authorEelco Dolstra <eelco.dolstra@logicblox.com>2013-10-28 00:08:42 +0100
committerEelco Dolstra <eelco.dolstra@logicblox.com>2013-10-28 22:45:55 +0100
commit2cc37c17d9313a22c5f4f2acbdd5b665c53f9f3c (patch)
tree8eb46a2a57797d879374098fa2a9237814d0d192 /nixos/modules/services/networking/openvpn.nix
parent5b8c4d2a7d3fc59636e44c69f7bddd5ffd9b0bed (diff)
downloadnixpkgs-2cc37c17d9313a22c5f4f2acbdd5b665c53f9f3c.tar
nixpkgs-2cc37c17d9313a22c5f4f2acbdd5b665c53f9f3c.tar.gz
nixpkgs-2cc37c17d9313a22c5f4f2acbdd5b665c53f9f3c.tar.bz2
nixpkgs-2cc37c17d9313a22c5f4f2acbdd5b665c53f9f3c.tar.lz
nixpkgs-2cc37c17d9313a22c5f4f2acbdd5b665c53f9f3c.tar.xz
nixpkgs-2cc37c17d9313a22c5f4f2acbdd5b665c53f9f3c.tar.zst
nixpkgs-2cc37c17d9313a22c5f4f2acbdd5b665c53f9f3c.zip
openvpn.nix: Improve types
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.
           '';