{ config, lib, pkgs, ... }: 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 tinc.yggdrasil <