summaryrefslogtreecommitdiff
path: root/custom/tinc/def.nix
diff options
context:
space:
mode:
authorGregor Kleen <gkleen@yggdrasil.li>2015-11-04 14:43:15 +0100
committerGregor Kleen <gkleen@yggdrasil.li>2015-11-04 14:43:15 +0100
commitf17b2bc5d10bf1df6327eb1cfa036e19d3db29d7 (patch)
tree0264805246e824b5902e9fd272cecbf30fa3c32a /custom/tinc/def.nix
parent769439aa5b55d1206fd0aaafde8421cf1e22197c (diff)
downloadnixos-f17b2bc5d10bf1df6327eb1cfa036e19d3db29d7.tar
nixos-f17b2bc5d10bf1df6327eb1cfa036e19d3db29d7.tar.gz
nixos-f17b2bc5d10bf1df6327eb1cfa036e19d3db29d7.tar.bz2
nixos-f17b2bc5d10bf1df6327eb1cfa036e19d3db29d7.tar.xz
nixos-f17b2bc5d10bf1df6327eb1cfa036e19d3db29d7.zip
generating RSA & ed25519 for new hosts in tinc
Diffstat (limited to 'custom/tinc/def.nix')
-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