mob next [ci-skip] [ci skip] [skip ci]
lastFile:modules/clan/gw-router/default.nix
This commit is contained in:
@@ -4,6 +4,8 @@
|
||||
{ config, ... }:
|
||||
let
|
||||
creds = config.clan.core.vars.generators.gw-router;
|
||||
|
||||
pppInterface = if settings.wan.vlanId == null then settings.wan.interface else "wan-vlan";
|
||||
in
|
||||
{
|
||||
clan.core.vars.generators.gw-router = {
|
||||
@@ -30,7 +32,7 @@
|
||||
peers.wan = {
|
||||
autostart = true;
|
||||
config = ''
|
||||
plugin pppoe.so ${settings.wan.pppInterface}
|
||||
plugin pppoe.so ${pppInterface}
|
||||
ifname ppp0
|
||||
file ${creds.files."pppoe-username".path}
|
||||
noipdefault
|
||||
|
||||
Reference in New Issue
Block a user