CASCADE/common/cascade-networking.nix

22 lines
530 B
Nix
Raw Normal View History

2022-09-24 03:24:58 +00:00
{config, lib, ...}: {
options = with lib; with types; {
cascade.bridge-interface = mkOption {
type = str;
description = "interface on which to create primary bridge (br0)";
};
};
config = with lib; {
networking = {
useNetworkd = mkForce true;
bridges.br0.interfaces = [config.cascade.bridge-interface];
interfaces.br0.useDHCP = mkImageMediaOverride true;
};
#systemd.network.links."05-br0".matchConfig.Name = "br0";
#systemd.network.links."05-br0".linkConfig.MACAddressPolicy = "none";
};
}