From d2311045a904fc60740b3006e1ac168d697efaa7 Mon Sep 17 00:00:00 2001 From: Gregor Kleen Date: Mon, 15 Nov 2021 10:01:47 +0059 Subject: vidhar: ... --- hosts/vidhar/dsl.nix | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'hosts/vidhar') diff --git a/hosts/vidhar/dsl.nix b/hosts/vidhar/dsl.nix index 695c99dd..487e5602 100644 --- a/hosts/vidhar/dsl.nix +++ b/hosts/vidhar/dsl.nix @@ -38,7 +38,7 @@ in { ''; }; systemd.services."pppd-telekom".serviceConfig = lib.mkForce { - ExecStart = "${lib.getBin pkgs.ppp}/sbin/pppd call telekom nodetach nolog"; + ExecStart = "${lib.getBin pkgs.ppp}/sbin/pppd call telekom nodetach nolog +ipv6"; Restart = "always"; RestartSec = 5; @@ -59,6 +59,13 @@ in { ''; mode = "0555"; }; + "ppp/ipv6-up" = { + text = '' + #!${pkgs.runtimeShell} + ${pkgs.iproute}/bin/ip -6 route add default via "$5" dev "${pppInterface}" metric 512 + ''; + mode = "0555"; + }; }; systemd.network.networks."dsl" = { -- cgit v1.2.3