inline excessive lets

This commit is contained in:
Daniel Barlow 2023-07-20 12:05:36 +01:00
parent 9b70fd62f6
commit 4396afa97b

View file

@ -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,10 +140,8 @@ in rec {
domain = "fake.liminix.org";
};
services.wan =
let iface = config.hardware.networkInterfaces.wan;
in svc.pppoe {
interface = iface;
services.wan = svc.pppoe {
interface = config.hardware.networkInterfaces.wan;
ppp-options = [
"debug" "+ipv6" "noauth"
"name" secrets.l2tp.name