summaryrefslogtreecommitdiff
path: root/custom/tinc/yggdrasil.nix
diff options
context:
space:
mode:
authorGregor Kleen <gkleen@yggdrasil.li>2018-04-17 20:06:22 +0200
committerGregor Kleen <gkleen@yggdrasil.li>2018-04-17 20:06:22 +0200
commitd6a37f91cb304c2025ed8f803265c0a4b072191c (patch)
tree0027a66dcc1aa1a3c5850c91839882424241cb4a /custom/tinc/yggdrasil.nix
parentd620828d322dd1f34b95a63857c2e90527ff5aa4 (diff)
downloadnixos-d6a37f91cb304c2025ed8f803265c0a4b072191c.tar
nixos-d6a37f91cb304c2025ed8f803265c0a4b072191c.tar.gz
nixos-d6a37f91cb304c2025ed8f803265c0a4b072191c.tar.bz2
nixos-d6a37f91cb304c2025ed8f803265c0a4b072191c.tar.xz
nixos-d6a37f91cb304c2025ed8f803265c0a4b072191c.zip
rename iface
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 {