From 8a9a9f92e065b34b1f24297cb343cd6f8b489f94 Mon Sep 17 00:00:00 2001 From: clerie Date: Wed, 27 Jul 2022 10:08:23 +0200 Subject: [PATCH] router: restart dhcpcd on ppp interface creation --- hosts/router/ppp.nix | 3 +++ 1 file changed, 3 insertions(+) diff --git a/hosts/router/ppp.nix b/hosts/router/ppp.nix index cdd5102..3691858 100644 --- a/hosts/router/ppp.nix +++ b/hosts/router/ppp.nix @@ -5,6 +5,7 @@ path = "/etc/ppp/pap-secrets"; mode = "0440"; }; + # Setting default routes based on interfaces in different tables environment.etc."ppp/ip-up" = { text = '' @@ -58,6 +59,8 @@ ${pkgs.iproute2}/bin/ip -6 route replace default dev ppp-uplink-b metric 1000 ;; esac + + ${pkgs.systemd}/bin/systemctl restart dhcpcd.service ''; mode = "555"; };