aboutsummaryrefslogtreecommitdiff
path: root/modules/apps/strongswan
diff options
context:
space:
mode:
authorIgor Pashev <pashev.igor@gmail.com>2017-04-30 14:42:55 +0300
committerIgor Pashev <pashev.igor@gmail.com>2017-04-30 15:56:41 +0300
commit9be6c7b78f2a668aa1edcafa25c3dd1ba8ae6ad7 (patch)
tree8db0743d00f83406e38e2c2c192751c778fe54c9 /modules/apps/strongswan
parent49659d55878d09827566902d07d01f051926aff2 (diff)
downloadnixsap-9be6c7b78f2a668aa1edcafa25c3dd1ba8ae6ad7.tar.gz
(* BREAKING *) Avoid ambiguous options
"either foo (listOf foo)" was not very useful and interfered proper merging.
Diffstat (limited to 'modules/apps/strongswan')
-rw-r--r--modules/apps/strongswan/options/conn.nix16
1 files changed, 8 insertions, 8 deletions
diff --git a/modules/apps/strongswan/options/conn.nix b/modules/apps/strongswan/options/conn.nix
index ac1d88c..4b20475 100644
--- a/modules/apps/strongswan/options/conn.nix
+++ b/modules/apps/strongswan/options/conn.nix
@@ -20,24 +20,24 @@ let
{ ca2 = optional str; }
{ cert = optional path; }
{ cert2 = optional path; }
- { dns = optional (either str (listOf str)); }
+ { dns = optional (listOf str); }
{ firewall = optional boolean; }
- { groups = optional (either str (listOf str)); }
+ { groups = optional (listOf str); }
{ hostaccess = optional boolean; }
{ id = optional str; }
{ id2 = optional str; }
- { policy = optional (either str (listOf str)); }
+ { policy = optional (listOf str); }
{ sendcert = optional (boolOr [ "never" "always" "ifasked" ]); }
- { sigkey = optional (either str path); }
+ { sigkey = optional str; }
{ sourceip = optional str; }
- { subnet = optional (either str (listOf str)); }
+ { subnet = optional (listOf str); }
{ updown = optional path; }
];
conn = leftright ++ [
{ aaa_identity = optional str; }
{ aggressive = optional boolean; }
- { ah = optional (either str (listOf str)); }
+ { ah = optional (listOf str); }
{ also = optional str; }
{ authby = optional (enum [ "pubkey" "rsasig" "ecdsasig" "psk" "secret" "xauthrsasig" "xauthpsk" "never" ]); }
{ auto = optional (enum [ "ignore" "add" "route" "start" ]); }
@@ -47,10 +47,10 @@ let
{ dpddelay = optional int; }
{ dpdtimeout = optional int; }
{ eap_identity = optional str; }
- { esp = optional (either str (listOf str)); }
+ { esp = optional (listOf str); }
{ forceencaps = optional boolean; }
{ fragmentation = optional (boolOr [ "force" ]); }
- { ike = optional (either str (listOf str)); }
+ { ike = optional (listOf str); }
{ ikedscp = optional str; }
{ ikelifetime = optional int; }
{ inactivity = optional int; }