diff options
Diffstat (limited to 'hosts/vidhar/network/dsl.nix')
-rw-r--r-- | hosts/vidhar/network/dsl.nix | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/hosts/vidhar/network/dsl.nix b/hosts/vidhar/network/dsl.nix index a5f4daf2..461e74d2 100644 --- a/hosts/vidhar/network/dsl.nix +++ b/hosts/vidhar/network/dsl.nix | |||
@@ -11,7 +11,7 @@ in { | |||
11 | default = "dsl"; | 11 | default = "dsl"; |
12 | }; | 12 | }; |
13 | }; | 13 | }; |
14 | 14 | ||
15 | config = { | 15 | config = { |
16 | networking.vlans = { | 16 | networking.vlans = { |
17 | telekom = { | 17 | telekom = { |
@@ -19,7 +19,7 @@ in { | |||
19 | interface = "eno2"; | 19 | interface = "eno2"; |
20 | }; | 20 | }; |
21 | }; | 21 | }; |
22 | 22 | ||
23 | services.pppd = { | 23 | services.pppd = { |
24 | enable = true; | 24 | enable = true; |
25 | peers.telekom.config = '' | 25 | peers.telekom.config = '' |
@@ -40,7 +40,7 @@ in { | |||
40 | }; | 40 | }; |
41 | systemd.services."pppd-telekom" = { | 41 | systemd.services."pppd-telekom" = { |
42 | stopIfChanged = true; | 42 | stopIfChanged = true; |
43 | 43 | ||
44 | serviceConfig = lib.mkForce { | 44 | serviceConfig = lib.mkForce { |
45 | Type = "notify"; | 45 | Type = "notify"; |
46 | PIDFile = "/run/pppd/${pppInterface}.pid"; | 46 | PIDFile = "/run/pppd/${pppInterface}.pid"; |
@@ -62,7 +62,7 @@ in { | |||
62 | "ppp/ip-up" = { | 62 | "ppp/ip-up" = { |
63 | text = '' | 63 | text = '' |
64 | #!${pkgs.runtimeShell} | 64 | #!${pkgs.runtimeShell} |
65 | ${pkgs.iproute}/bin/ip route add default via "$5" dev "${pppInterface}" metric 512 | 65 | ${pkgs.iproute2}/bin/ip route add default via "$5" dev "${pppInterface}" metric 512 |
66 | ''; | 66 | ''; |
67 | mode = "0555"; | 67 | mode = "0555"; |
68 | }; | 68 | }; |