diff options
author | Gregor Kleen <gkleen@yggdrasil.li> | 2021-11-15 10:01:47 +0059 |
---|---|---|
committer | Gregor Kleen <gkleen@yggdrasil.li> | 2021-11-15 10:01:47 +0059 |
commit | d2311045a904fc60740b3006e1ac168d697efaa7 (patch) | |
tree | edaa68f0d909da0fcaeeb7045f8ee29a1a5cc34e | |
parent | ce5bc154d94c00e45f82b9882155db8020ff76fc (diff) | |
download | nixos-d2311045a904fc60740b3006e1ac168d697efaa7.tar nixos-d2311045a904fc60740b3006e1ac168d697efaa7.tar.gz nixos-d2311045a904fc60740b3006e1ac168d697efaa7.tar.bz2 nixos-d2311045a904fc60740b3006e1ac168d697efaa7.tar.xz nixos-d2311045a904fc60740b3006e1ac168d697efaa7.zip |
vidhar: ...
-rw-r--r-- | hosts/vidhar/dsl.nix | 9 |
1 files changed, 8 insertions, 1 deletions
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 { | |||
38 | ''; | 38 | ''; |
39 | }; | 39 | }; |
40 | systemd.services."pppd-telekom".serviceConfig = lib.mkForce { | 40 | systemd.services."pppd-telekom".serviceConfig = lib.mkForce { |
41 | ExecStart = "${lib.getBin pkgs.ppp}/sbin/pppd call telekom nodetach nolog"; | 41 | ExecStart = "${lib.getBin pkgs.ppp}/sbin/pppd call telekom nodetach nolog +ipv6"; |
42 | Restart = "always"; | 42 | Restart = "always"; |
43 | RestartSec = 5; | 43 | RestartSec = 5; |
44 | 44 | ||
@@ -59,6 +59,13 @@ in { | |||
59 | ''; | 59 | ''; |
60 | mode = "0555"; | 60 | mode = "0555"; |
61 | }; | 61 | }; |
62 | "ppp/ipv6-up" = { | ||
63 | text = '' | ||
64 | #!${pkgs.runtimeShell} | ||
65 | ${pkgs.iproute}/bin/ip -6 route add default via "$5" dev "${pppInterface}" metric 512 | ||
66 | ''; | ||
67 | mode = "0555"; | ||
68 | }; | ||
62 | }; | 69 | }; |
63 | 70 | ||
64 | systemd.network.networks."dsl" = { | 71 | systemd.network.networks."dsl" = { |