From 97670788782e17d9e8922b3201a6514ad961e884 Mon Sep 17 00:00:00 2001 From: Daniel Barlow Date: Thu, 8 Aug 2024 19:24:58 +0100 Subject: [PATCH] add the example used in the video --- examples/router-with-l2tp.nix | 12 +++--------- 1 file changed, 3 insertions(+), 9 deletions(-) diff --git a/examples/router-with-l2tp.nix b/examples/router-with-l2tp.nix index a22709e..92aa496 100644 --- a/examples/router-with-l2tp.nix +++ b/examples/router-with-l2tp.nix @@ -1,3 +1,6 @@ +# A demonstration config for a home/soho router with PPPoE upstream +# and fallback to an L2TP tunnel over a USB WWAN device + { config, pkgs, @@ -46,11 +49,8 @@ in rec { imports = [ ../modules/wwan ../modules/network - # ../modules/vlan ../modules/ssh ../modules/usb.nix - # ../modules/watchdog - # ../modules/mount ../modules/ppp ../modules/round-robin ../modules/health-check @@ -178,12 +178,6 @@ in rec { ''; }; - # services.ntp = svc.ntp.build { - # pools = { "pool.ntp.org" = ["iburst"]; }; - # makestep = { threshold = 1.0; limit = 3; }; - # dependencies = with config.services; [ defaultroute4 defaultroute6 ]; - # }; - users.root = rsecrets.root; programs.busybox.options = {