summaryrefslogtreecommitdiff
path: root/custom/tinc/yggdrasil.nix
diff options
context:
space:
mode:
Diffstat (limited to 'custom/tinc/yggdrasil.nix')
-rw-r--r--custom/tinc/yggdrasil.nix5
1 files changed, 3 insertions, 2 deletions
diff --git a/custom/tinc/yggdrasil.nix b/custom/tinc/yggdrasil.nix
index 7c028824..53b8b85e 100644
--- a/custom/tinc/yggdrasil.nix
+++ b/custom/tinc/yggdrasil.nix
@@ -4,6 +4,7 @@
4, name 4, name
5, connect ? true 5, connect ? true
6, ipConf ? {} 6, ipConf ? {}
7, useDNS ? true
7}: 8}:
8 9
9 10
@@ -22,10 +23,10 @@ in {
22 tinc-up = '' 23 tinc-up = ''
23 #!${stdenv.shell} 24 #!${stdenv.shell}
24 ${nettools}/bin/route add -net 10.141.1.0 netmask 255.255.255.0 gw 10.141.1.1 dev $INTERFACE metric 9999 25 ${nettools}/bin/route add -net 10.141.1.0 netmask 255.255.255.0 gw 10.141.1.1 dev $INTERFACE metric 9999
25 ${openresolv}/bin/resolvconf -m 0 -a tinc.yggdrasil <<EOF 26 ${if useDNS then ''${openresolv}/bin/resolvconf -m 0 -a tinc.yggdrasil <<EOF
26 domain yggdrasil 27 domain yggdrasil
27 nameserver 10.141.1.1 28 nameserver 10.141.1.1
28 EOF 29 EOF'' else ""}
29 ''; 30 '';
30 tinc-down = '' 31 tinc-down = ''
31 #!${stdenv.shell} 32 #!${stdenv.shell}