diff options
Diffstat (limited to 'hosts/vidhar')
| -rw-r--r-- | hosts/vidhar/network/pppoe/default.nix | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/hosts/vidhar/network/pppoe/default.nix b/hosts/vidhar/network/pppoe/default.nix index 36bf4f49..aac31ce6 100644 --- a/hosts/vidhar/network/pppoe/default.nix +++ b/hosts/vidhar/network/pppoe/default.nix | |||
| @@ -14,7 +14,7 @@ in { | |||
| 14 | 14 | ||
| 15 | config = { | 15 | config = { |
| 16 | networking.vlans = { | 16 | networking.vlans = { |
| 17 | telekom = { | 17 | pppoe = { |
| 18 | id = 7; | 18 | id = 7; |
| 19 | interface = "eno2"; | 19 | interface = "eno2"; |
| 20 | }; | 20 | }; |
| @@ -48,8 +48,8 @@ in { | |||
| 48 | "password:${config.sops.secrets."o2-password".path}" | 48 | "password:${config.sops.secrets."o2-password".path}" |
| 49 | ]; | 49 | ]; |
| 50 | 50 | ||
| 51 | bindsTo = [ "sys-subsystem-net-devices-telekom.device" ]; | 51 | bindsTo = [ "sys-subsystem-net-devices-pppoe.device" ]; |
| 52 | after = [ "sys-subsystem-net-devices-telekom.device" ]; | 52 | after = [ "sys-subsystem-net-devices-pppoe.device" ]; |
| 53 | }; | 53 | }; |
| 54 | sops.secrets."o2-password" = { | 54 | sops.secrets."o2-password" = { |
| 55 | format = "binary"; | 55 | format = "binary"; |
| @@ -69,7 +69,7 @@ in { | |||
| 69 | plugin pppoe.so | 69 | plugin pppoe.so |
| 70 | pppoe-padi-timeout 1 | 70 | pppoe-padi-timeout 1 |
| 71 | pppoe-padi-attempts 10 | 71 | pppoe-padi-attempts 10 |
| 72 | nic-telekom | 72 | nic-pppoe |
| 73 | debug | 73 | debug |
| 74 | +ipv6 | 74 | +ipv6 |
| 75 | ''; | 75 | ''; |
| @@ -85,7 +85,7 @@ in { | |||
| 85 | "cannot:${lib.getExe' pkgs.iproute2 "tc"}" | 85 | "cannot:${lib.getExe' pkgs.iproute2 "tc"}" |
| 86 | ]; | 86 | ]; |
| 87 | } '' | 87 | } '' |
| 88 | ethtool -K telekom tso off gso off gro off | 88 | ethtool -K pppoe tso off gso off gro off |
| 89 | 89 | ||
| 90 | ip link del "ifb4$1" || true | 90 | ip link del "ifb4$1" || true |
| 91 | ip link add name "ifb4$1" type ifb | 91 | ip link add name "ifb4$1" type ifb |
