summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--custom/tinc/def.nix4
1 files changed, 2 insertions, 2 deletions
diff --git a/custom/tinc/def.nix b/custom/tinc/def.nix
index 6db4e882..e3f1f587 100644
--- a/custom/tinc/def.nix
+++ b/custom/tinc/def.nix
@@ -153,8 +153,8 @@ in
153 # Determine how we should generate our keys 153 # Determine how we should generate our keys
154 if type tinc >/dev/null 2>&1; then 154 if type tinc >/dev/null 2>&1; then
155 # Tinc 1.1+ uses the tinc helper application for key generation 155 # Tinc 1.1+ uses the tinc helper application for key generation
156 [ -f "/etc/tinc/${network}/ed25519_key.priv" ] || tinc -n ${network} generate-ed25519-keys || \ 156 [ -f "/etc/tinc/${network}/ed25519_key.priv" ] || tinc -n ${network} generate-ed25519-keys
157 [ -f "/etc/tinc/${network}/rsa_key.priv" ] || tinc -n ${network} generate-rsa-keys 4096 157 [ -f "/etc/tinc/${network}/rsa_key.priv" ] || tinc -n ${network} generate-rsa-keys 4096
158 else 158 else
159 # Tinc 1.0 uses the tincd application 159 # Tinc 1.0 uses the tincd application
160 [ -f "/etc/tinc/${network}/rsa_key.priv" ] || tincd -n ${network} -K 4096 160 [ -f "/etc/tinc/${network}/rsa_key.priv" ] || tincd -n ${network} -K 4096