summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGregor Kleen <gkleen@yggdrasil.li>2024-07-10 09:16:27 +0200
committerGregor Kleen <gkleen@yggdrasil.li>2024-07-10 09:16:27 +0200
commitd305ddcea6880c31d67fab87c6dd898c5643e479 (patch)
tree3655a5708a27193fe936d1f56ad5b089f577612f
parentd2a60dec0e131ab24c56965a7c8fa84d3899d8ab (diff)
downloadnixos-d305ddcea6880c31d67fab87c6dd898c5643e479.tar
nixos-d305ddcea6880c31d67fab87c6dd898c5643e479.tar.gz
nixos-d305ddcea6880c31d67fab87c6dd898c5643e479.tar.bz2
nixos-d305ddcea6880c31d67fab87c6dd898c5643e479.tar.xz
nixos-d305ddcea6880c31d67fab87c6dd898c5643e479.zip
...
-rw-r--r--hosts/vidhar/network/gpon.nix10
1 files changed, 8 insertions, 2 deletions
diff --git a/hosts/vidhar/network/gpon.nix b/hosts/vidhar/network/gpon.nix
index 6751978f..750f6545 100644
--- a/hosts/vidhar/network/gpon.nix
+++ b/hosts/vidhar/network/gpon.nix
@@ -45,6 +45,12 @@ in {
45 serviceConfig = { 45 serviceConfig = {
46 PIDFile = "/run/pppd/${pppInterface}.pid"; 46 PIDFile = "/run/pppd/${pppInterface}.pid";
47 }; 47 };
48 restartTriggers = with config; [
49 environment.etc."ppp/ip-pre-up".source
50 environment.etc."ppp/ip-up".source
51 environment.etc."ppp/ip-down".source
52 sops.secrets."pap-secrets".sopsFile
53 ];
48 }; 54 };
49 sops.secrets."pap-secrets" = { 55 sops.secrets."pap-secrets" = {
50 format = "binary"; 56 format = "binary";
@@ -70,8 +76,8 @@ in {
70 76
71 tc qdisc add dev "${pppInterface}" handle ffff: ingress 77 tc qdisc add dev "${pppInterface}" handle ffff: ingress
72 tc filter add dev "${pppInterface}" parent ffff: basic action ctinfo dscp 0x0000003f 0x00000040 action mirred egress redirect dev "ifb4${pppInterface}" 78 tc filter add dev "${pppInterface}" parent ffff: basic action ctinfo dscp 0x0000003f 0x00000040 action mirred egress redirect dev "ifb4${pppInterface}"
73 tc qdisc replace dev "ifb4${pppInterface}" root cake memlimit 128Mb pppoe-ptm diffserv4 bandwidth 285mbit 79 tc qdisc replace dev "ifb4${pppInterface}" root cake memlimit 128Mb overhead 35 mpu 74 regional diffserv4 bandwidth 285mbit autorate-ingress
74 tc qdisc replace dev "${pppInterface}" root cake memlimit 128Mb pppoe-ptm nat diffserv4 wash bandwidth 143mbit 80 tc qdisc replace dev "${pppInterface}" root cake memlimit 128Mb overhead 35 mpu 74 regional nat diffserv4 wash bandwidth 143mbit
75 ''; 81 '';
76 }; 82 };
77 in "${app}/bin/${app.meta.mainProgram}"; 83 in "${app}/bin/${app.meta.mainProgram}";