add structured config for common pppoe options

This commit is contained in:
Daniel Barlow
2024-07-16 20:47:53 +01:00
parent 135a445672
commit 7195cb10ce
4 changed files with 61 additions and 27 deletions

View File

@@ -87,12 +87,7 @@ in {
};
services.wan = svc.pppoe.build {
inherit (cfg.wan) interface;
ppp-options = [
"debug" "+ipv6" "noauth"
"name" cfg.wan.username
"password" cfg.wan.password
];
inherit (cfg.wan) interface username password;
};
services.packet_forwarding = svc.network.forward.build { };