summaryrefslogtreecommitdiff
path: root/hosts/vidhar/network/pppoe/default.nix
diff options
context:
space:
mode:
authorGregor Kleen <gkleen@yggdrasil.li>2026-04-16 19:18:01 +0200
committerGregor Kleen <gkleen@yggdrasil.li>2026-04-16 19:18:01 +0200
commit42f0f273131b85af31c62906f6c99a12abc0b6c2 (patch)
treea0fa5c96fa5d74b100dcc371b55e5a064f266e90 /hosts/vidhar/network/pppoe/default.nix
parentd02070251ba23429ba2514d71f30eebece187b7f (diff)
downloadnixos-42f0f273131b85af31c62906f6c99a12abc0b6c2.tar
nixos-42f0f273131b85af31c62906f6c99a12abc0b6c2.tar.gz
nixos-42f0f273131b85af31c62906f6c99a12abc0b6c2.tar.bz2
nixos-42f0f273131b85af31c62906f6c99a12abc0b6c2.tar.xz
nixos-42f0f273131b85af31c62906f6c99a12abc0b6c2.zip
Diffstat (limited to 'hosts/vidhar/network/pppoe/default.nix')
-rw-r--r--hosts/vidhar/network/pppoe/default.nix10
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