openvpn.nix: Improve types
This commit is contained in:
parent
5b8c4d2a7d
commit
2cc37c17d9
@ -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.
|
||||||
'';
|
'';
|
||||||
|
Loading…
x
Reference in New Issue
Block a user