summaryrefslogtreecommitdiff
path: root/hosts/vidhar/network
diff options
context:
space:
mode:
authorGregor Kleen <gkleen@yggdrasil.li>2025-11-30 16:52:32 +0100
committerGregor Kleen <gkleen@yggdrasil.li>2025-11-30 16:52:32 +0100
commit213af309ab7e03be502d59d71e26298e6008e5b4 (patch)
tree2d6705b0fd67ee2097b4d1d92fa6fb24f6f1a525 /hosts/vidhar/network
parent27ae88d7a043f654fbd837fe249538bf11d36d48 (diff)
downloadnixos-213af309ab7e03be502d59d71e26298e6008e5b4.tar
nixos-213af309ab7e03be502d59d71e26298e6008e5b4.tar.gz
nixos-213af309ab7e03be502d59d71e26298e6008e5b4.tar.bz2
nixos-213af309ab7e03be502d59d71e26298e6008e5b4.tar.xz
nixos-213af309ab7e03be502d59d71e26298e6008e5b4.zip
...
Diffstat (limited to 'hosts/vidhar/network')
-rw-r--r--hosts/vidhar/network/pppoe.nix3
1 files changed, 1 insertions, 2 deletions
diff --git a/hosts/vidhar/network/pppoe.nix b/hosts/vidhar/network/pppoe.nix
index 52151d87..a891e269 100644
--- a/hosts/vidhar/network/pppoe.nix
+++ b/hosts/vidhar/network/pppoe.nix
@@ -86,8 +86,7 @@ in {
86 execer = [ "cannot:${lib.getExe' pkgs.iproute2 "ip"}" ]; 86 execer = [ "cannot:${lib.getExe' pkgs.iproute2 "ip"}" ];
87 } '' 87 } ''
88 ip addr add "$4" peer "$5"/32 dev "$1" 88 ip addr add "$4" peer "$5"/32 dev "$1"
89 ip route add "$5" dev "1" 89 ip route add default dev "$1" metric 512
90 ip route add default via "$5" dev "1" metric 512
91 ''; 90 '';
92 "ppp/ip-down".source = pkgs.resholve.writeScript "ip-down" { 91 "ppp/ip-down".source = pkgs.resholve.writeScript "ip-down" {
93 interpreter = pkgs.runtimeShell; 92 interpreter = pkgs.runtimeShell;