diff options
Diffstat (limited to 'modules/router.nix')
-rw-r--r-- | modules/router.nix | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/modules/router.nix b/modules/router.nix index a0c2db3..b25f2fb 100644 --- a/modules/router.nix +++ b/modules/router.nix @@ -168,6 +168,18 @@ let ''; }; + systemd.services.dhcp-workaround = { + description = "Restart dhcpcd"; + script = "/run/current-system/sw/bin/systemctl restart dhcpcd"; + }; + systemd.timers.dhcp-workaround = { + wantedBy = ["multi-user.target"]; + timerConfig = { + Persistent = true; + OnCalendar = "*-*-* 04:00:00"; + }; + }; + services.dnsmasq = { enable = true; settings.server = [ "1.1.1.1" "8.8.8.8" "8.8.4.4" ]; |