From 228b191389b989dcbec609e52371f0dda33ef51b Mon Sep 17 00:00:00 2001 From: Gregor Kleen Date: Mon, 23 Apr 2018 11:57:23 +0200 Subject: dns via dhcp --- custom/tinc/yggdrasil.nix | 29 ----------------------------- 1 file changed, 29 deletions(-) (limited to 'custom') diff --git a/custom/tinc/yggdrasil.nix b/custom/tinc/yggdrasil.nix index 34933a19..2caa74a0 100644 --- a/custom/tinc/yggdrasil.nix +++ b/custom/tinc/yggdrasil.nix @@ -4,25 +4,6 @@ with lib; let cfg = config.services.yggdrasilTinc; - - heimdallr-up = pkgs.writeScript "heimdallr-up.sh" '' - #!${pkgs.stdenv.shell} - ${pkgs.nettools}/bin/route add -net 10.141.1.0 netmask 255.255.255.0 gw 10.141.1.1 dev $INTERFACE metric 9999 - ${optionalString cfg.useDNS '' - ${pkgs.openresolv}/bin/resolvconf -m 0 -a yggdrasil <$MACFILE ''; - "hosts/heimdallr-up" = '' - #!${pkgs.stdenv.shell} - - exec ${config.security.wrapperDir}/sudo -En ${heimdallr-up} - ''; - "hosts/heimdallr-down" = '' - #!${pkgs.stdenv.shell} - - exec ${config.security.wrapperDir}/sudo -En ${heimdallr-down} - ''; }; }; }; -- cgit v1.2.3