diff options
Diffstat (limited to 'nixos/routers')
-rw-r--r-- | nixos/routers/wifi-adm.nix | 16 | ||||
-rw-r--r-- | nixos/routers/wifi-spt.nix | 13 |
2 files changed, 22 insertions, 7 deletions
diff --git a/nixos/routers/wifi-adm.nix b/nixos/routers/wifi-adm.nix index f77d9ad..f50e3f3 100644 --- a/nixos/routers/wifi-adm.nix +++ b/nixos/routers/wifi-adm.nix @@ -85,13 +85,15 @@ in { cnf.ar9287.interface cnf.qca988x.interface ]; - brguest.interfaces = (optionals (cnf.ar9287.interface != null) [ - "${cnf.ar9287.interface}.nela" - "${cnf.ar9287.interface}.milan" - ]) ++ (optionals (cnf.qca988x.interface != null) [ - "${cnf.qca988x.interface}.nela" - "${cnf.qca988x.interface}.milan" - ]); + brguest.interfaces = + (optionals (cnf.ar9287.interface != null) [ + "${cnf.ar9287.interface}.nela" + "${cnf.ar9287.interface}.milan" + ]) + ++ (optionals (cnf.qca988x.interface != null) [ + "${cnf.qca988x.interface}.nela" + "${cnf.qca988x.interface}.milan" + ]); }; }; } diff --git a/nixos/routers/wifi-spt.nix b/nixos/routers/wifi-spt.nix index 39740a1..3d70e18 100644 --- a/nixos/routers/wifi-spt.nix +++ b/nixos/routers/wifi-spt.nix @@ -72,5 +72,18 @@ in { }; }); }; + networking.bridges = { + brlan.interfaces = filter (v: v != null) [ + cnf.ar9287.interface + cnf.qca988x.interface + ]; + brguest.interfaces = + (optionals (cnf.ar9287.interface != null) [ + "${cnf.ar9287.interface}.guest" + ]) + ++ (optionals (cnf.qca988x.interface != null) [ + "${cnf.qca988x.interface}.guest" + ]); + }; }; } |