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.nix4
1 files changed, 2 insertions, 2 deletions
diff --git a/custom/tinc/yggdrasil.nix b/custom/tinc/yggdrasil.nix
index 2da48486..175da1ec 100644
--- a/custom/tinc/yggdrasil.nix
+++ b/custom/tinc/yggdrasil.nix
@@ -9,7 +9,7 @@ let
9 #!${pkgs.stdenv.shell} 9 #!${pkgs.stdenv.shell}
10 ${pkgs.nettools}/bin/route add -net 10.141.1.0 netmask 255.255.255.0 gw 10.141.1.1 dev $INTERFACE metric 9999 10 ${pkgs.nettools}/bin/route add -net 10.141.1.0 netmask 255.255.255.0 gw 10.141.1.1 dev $INTERFACE metric 9999
11 ${optionalString cfg.useDNS '' 11 ${optionalString cfg.useDNS ''
12 ${pkgs.openresolv}/bin/resolvconf -m 0 -a tinc.yggdrasil <<EOF 12 ${pkgs.openresolv}/bin/resolvconf -m 0 -a yggdrasil <<EOF
13 domain yggdrasil 13 domain yggdrasil
14 nameserver 10.141.1.1 14 nameserver 10.141.1.1
15 EOF 15 EOF
@@ -20,7 +20,7 @@ let
20 #!${pkgs.stdenv.shell} 20 #!${pkgs.stdenv.shell}
21 ${pkgs.nettools}/bin/route del -net 10.141.1.0 netmask 255.255.255.0 gw 10.141.1.1 dev $INTERFACE 21 ${pkgs.nettools}/bin/route del -net 10.141.1.0 netmask 255.255.255.0 gw 10.141.1.1 dev $INTERFACE
22 ${optionalString cfg.useDNS '' 22 ${optionalString cfg.useDNS ''
23 ${pkgs.openresolv}/bin/resolvconf -d tinc.yggdrasil 23 ${pkgs.openresolv}/bin/resolvconf -d yggdrasil
24 ''} 24 ''}
25 ''; 25 '';
26in { 26in {