feat(krz01/networking): Add a bridge to connect VMs to the world

This commit is contained in:
sinavir 2024-10-18 09:27:24 +02:00
parent f1bd9f9a2b
commit c81f2d3b73
3 changed files with 26 additions and 1 deletions

View file

@ -14,6 +14,7 @@ lib.extra.mkConfig {
"ollama"
"whisper"
"proxmox"
"networking"
];
extraConfig = {

View file

@ -0,0 +1,24 @@
{
systemd.network = {
networks = {
"10-eno1" = {
matchConfig.Name = [ "eno1" ];
networkConfig = {
Bridge = "vmbr0";
};
};
"10-vmbr0" = {
matchConfig.Name = "vmbr0";
linkConfig.RequiredForOnline = "routable";
};
};
netdevs."vmbr0" = {
netdevConfig = {
Name = "vmbr0";
Kind = "bridge";
};
};
};
}

View file

@ -1,7 +1,7 @@
{
krz01 = {
interfaces = {
eno1 = {
vmbr0 = {
ipv4 = [
{
address = "129.199.146.21";