28 lines
571 B
Nix
28 lines
571 B
Nix
|
# SPDX-FileCopyrightText: 2024 Luke Granger-Brown <depot@lukegb.com>
|
||
|
#
|
||
|
# SPDX-License-Identifier: Apache-2.0
|
||
|
|
||
|
{ depot, lib, pkgs, config, ... }:
|
||
|
|
||
|
{
|
||
|
systemd.network.netdevs."40-br-public" = {
|
||
|
netdevConfig = {
|
||
|
Name = "br-public";
|
||
|
Kind = "bridge";
|
||
|
};
|
||
|
};
|
||
|
systemd.network.networks."40-br-public" = {
|
||
|
matchConfig.Name = "br-public";
|
||
|
};
|
||
|
|
||
|
systemd.network.netdevs."40-br-mgmt" = {
|
||
|
netdevConfig = {
|
||
|
Name = "br-mgmt";
|
||
|
Kind = "bridge";
|
||
|
};
|
||
|
};
|
||
|
systemd.network.networks."40-br-mgmt" = {
|
||
|
matchConfig.Name = "br-mgmt";
|
||
|
};
|
||
|
}
|