openvpn.nix: Improve types

This commit is contained in:
Eelco Dolstra 2013-10-28 00:08:42 +01:00
parent 5b8c4d2a7d
commit 2cc37c17d9

View File

@ -117,11 +117,11 @@ in
type = types.attrsOf types.optionSet; type = types.attrsOf types.optionSet;
options = { options = {
config = mkOption { config = mkOption {
type = types.string; type = types.lines;
description = '' description = ''
Configuration of this OpenVPN instance. See Configuration of this OpenVPN instance. See
<citerefentry><refentrytitle>openvpn</refentrytitle><manvolnum>8</manvolnum></citerefentry> <citerefentry><refentrytitle>openvpn</refentrytitle><manvolnum>8</manvolnum></citerefentry>
for details. for details.
@ -130,7 +130,7 @@ in
up = mkOption { up = mkOption {
default = ""; default = "";
type = types.string; type = types.lines;
description = '' description = ''
Shell commands executed when the instance is starting. Shell commands executed when the instance is starting.
''; '';
@ -138,7 +138,7 @@ in
down = mkOption { down = mkOption {
default = ""; default = "";
type = types.string; type = types.lines;
description = '' description = ''
Shell commands executed when the instance is shutting down. Shell commands executed when the instance is shutting down.
''; '';