feat(krz01/networking): Add a bridge to connect VMs to the world
This commit is contained in:
parent
f1bd9f9a2b
commit
c81f2d3b73
3 changed files with 26 additions and 1 deletions
|
@ -14,6 +14,7 @@ lib.extra.mkConfig {
|
|||
"ollama"
|
||||
"whisper"
|
||||
"proxmox"
|
||||
"networking"
|
||||
];
|
||||
|
||||
extraConfig = {
|
||||
|
|
24
machines/krz01/networking.nix
Normal file
24
machines/krz01/networking.nix
Normal 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";
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
|
@ -1,7 +1,7 @@
|
|||
{
|
||||
krz01 = {
|
||||
interfaces = {
|
||||
eno1 = {
|
||||
vmbr0 = {
|
||||
ipv4 = [
|
||||
{
|
||||
address = "129.199.146.21";
|
||||
|
|
Loading…
Reference in a new issue