nixops: enable libvirt bridge on hera

This commit is contained in:
Sebastien Bourdeauducq 2021-09-13 12:35:04 +08:00
parent 38b83ee8d9
commit 427b0def7f
1 changed files with 10 additions and 0 deletions

View File

@ -27,4 +27,14 @@
boot.loader.systemd-boot.enable = true; boot.loader.systemd-boot.enable = true;
boot.loader.efi.canTouchEfiVariables = true; boot.loader.efi.canTouchEfiVariables = true;
virtualisation.libvirtd.allowedBridges = [ "virbr0" "br0" ];
networking.bridges = {
br0 = {
interfaces = [ "eno1" ];
};
};
networking.networkmanager.enable = false;
networking.useDHCP = false;
networking.interfaces.br0.useDHCP = true;
} }