2024-12-12 14:41:43 +01:00
|
|
|
# SPDX-FileCopyrightText: 2024 Ryan Lahfa <ryan.lahfa@dgnum.eu>
|
|
|
|
#
|
|
|
|
# SPDX-License-Identifier: EUPL-1.2
|
|
|
|
|
2024-12-07 16:20:53 +01:00
|
|
|
{ config, ... }:
|
|
|
|
let
|
|
|
|
svc = config.system.service;
|
|
|
|
in
|
|
|
|
{
|
2024-12-08 23:18:08 +01:00
|
|
|
# Our bridging is a bit complicated, therefore, we need iproute2.
|
|
|
|
programs.iproute2.enable = true;
|
2024-12-07 16:20:53 +01:00
|
|
|
|
2024-12-08 23:18:08 +01:00
|
|
|
services = {
|
|
|
|
admin-vlan = svc.vlan.build {
|
|
|
|
ifname = "admin";
|
2025-01-28 09:47:53 +01:00
|
|
|
primary = config.hardware.networkInterfaces.lan;
|
2024-12-08 23:18:08 +01:00
|
|
|
vid = "3001";
|
|
|
|
};
|
|
|
|
};
|
2024-12-07 16:20:53 +01:00
|
|
|
}
|