From 4396afa97b0691b6e2c0d62e8cf2f9e6375e6747 Mon Sep 17 00:00:00 2001 From: Daniel Barlow Date: Thu, 20 Jul 2023 12:05:36 +0100 Subject: [PATCH] inline excessive lets --- examples/rotuer.nix | 22 +++++++++------------- 1 file changed, 9 insertions(+), 13 deletions(-) diff --git a/examples/rotuer.nix b/examples/rotuer.nix index 5bb0777..7c0c23a 100644 --- a/examples/rotuer.nix +++ b/examples/rotuer.nix @@ -83,9 +83,7 @@ in rec { }; services.int = - let iface = svc.bridge.primary { - ifname = "int"; - }; + let iface = svc.bridge.primary { ifname = "int"; }; in address iface { family = "inet4"; address ="10.8.0.1"; prefixLength = 16; }; @@ -142,16 +140,14 @@ in rec { domain = "fake.liminix.org"; }; - services.wan = - let iface = config.hardware.networkInterfaces.wan; - in svc.pppoe { - interface = iface; - ppp-options = [ - "debug" "+ipv6" "noauth" - "name" secrets.l2tp.name - "password" secrets.l2tp.password - ]; - }; + services.wan = svc.pppoe { + interface = config.hardware.networkInterfaces.wan; + ppp-options = [ + "debug" "+ipv6" "noauth" + "name" secrets.l2tp.name + "password" secrets.l2tp.password + ]; + }; services.resolvconf = oneshot rec { dependencies = [ services.wan ];