2021-11-16 16:56:43 -08:00
|
|
|
{ config, lib, pkgs, ... }:
|
|
|
|
|
|
|
|
{
|
2021-11-18 09:51:41 -08:00
|
|
|
config = {
|
|
|
|
boot.isContainer = true;
|
2021-11-16 16:56:43 -08:00
|
|
|
|
2021-11-18 09:51:41 -08:00
|
|
|
networking = {
|
|
|
|
useDHCP = false;
|
|
|
|
|
|
|
|
macvlans = {
|
|
|
|
extif0 = {
|
|
|
|
interface = "eno2";
|
|
|
|
mode = "bridge";
|
|
|
|
};
|
2021-11-17 17:32:27 -08:00
|
|
|
};
|
|
|
|
|
2021-11-18 09:51:41 -08:00
|
|
|
interfaces = {
|
|
|
|
extif0.macAddress =
|
2021-11-29 16:03:38 -08:00
|
|
|
pkgs.lib.network.generate-mac-address config.instance.hostname "extif0";
|
2021-11-18 09:51:41 -08:00
|
|
|
};
|
2021-11-17 17:32:27 -08:00
|
|
|
};
|
|
|
|
};
|
2021-11-16 16:56:43 -08:00
|
|
|
}
|