forked from dan/liminix
1
0
Fork 0

inline excessive lets

This commit is contained in:
Daniel Barlow 2023-07-20 12:05:36 +01:00
parent 9b70fd62f6
commit 4396afa97b
1 changed files with 9 additions and 13 deletions

View File

@ -83,9 +83,7 @@ in rec {
}; };
services.int = services.int =
let iface = svc.bridge.primary { let iface = svc.bridge.primary { ifname = "int"; };
ifname = "int";
};
in address iface { in address iface {
family = "inet4"; address ="10.8.0.1"; prefixLength = 16; family = "inet4"; address ="10.8.0.1"; prefixLength = 16;
}; };
@ -142,16 +140,14 @@ in rec {
domain = "fake.liminix.org"; domain = "fake.liminix.org";
}; };
services.wan = services.wan = svc.pppoe {
let iface = config.hardware.networkInterfaces.wan; interface = config.hardware.networkInterfaces.wan;
in svc.pppoe { ppp-options = [
interface = iface; "debug" "+ipv6" "noauth"
ppp-options = [ "name" secrets.l2tp.name
"debug" "+ipv6" "noauth" "password" secrets.l2tp.password
"name" secrets.l2tp.name ];
"password" secrets.l2tp.password };
];
};
services.resolvconf = oneshot rec { services.resolvconf = oneshot rec {
dependencies = [ services.wan ]; dependencies = [ services.wan ];