liminix

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | README | LICENSE

commit 4396afa97b0691b6e2c0d62e8cf2f9e6375e6747
parent 9b70fd62f6088e3d06d66a1a7b6a7da8396870cb
Author: Daniel Barlow <dan@telent.net>
Date:   Thu, 20 Jul 2023 12:05:36 +0100

inline excessive lets

Diffstat:
Mexamples/rotuer.nix | 22+++++++++-------------
1 file changed, 9 insertions(+), 13 deletions(-)

diff --git 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 ];