summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--custom/tinc/yggdrasil.nix7
1 files changed, 7 insertions, 0 deletions
diff --git a/custom/tinc/yggdrasil.nix b/custom/tinc/yggdrasil.nix
index 91c1add8..2da48486 100644
--- a/custom/tinc/yggdrasil.nix
+++ b/custom/tinc/yggdrasil.nix
@@ -80,6 +80,13 @@ in {
80 ${optionalString cfg.connect "ConnectTo = ymir"} 80 ${optionalString cfg.connect "ConnectTo = ymir"}
81 ''; 81 '';
82 scripts = { 82 scripts = {
83 "tinc-up" = ''
84 #!${pkgs.stdenv.shell}
85
86 set -e
87 MACFILE="/var/db/$NETNAME.mac"
88 [ -e $MACFILE ] && ip link set dev $INTERFACE address `cat $MACFILE` || cat /sys/class/net/$INTERFACE/address >$MACFILE
89 '';
83 "hosts/heimdallr-up" = '' 90 "hosts/heimdallr-up" = ''
84 #!${pkgs.stdenv.shell} 91 #!${pkgs.stdenv.shell}
85 92