diff options
Diffstat (limited to 'hosts/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" = { |
