add qemu bridge configuration
This commit is contained in:
@@ -30,6 +30,7 @@
|
||||
./backup-target.nix
|
||||
|
||||
./users/shatteredmint.nix
|
||||
./qemu-bridges.nix
|
||||
];
|
||||
};
|
||||
|
||||
|
||||
12
qemu-bridges.nix
Normal file
12
qemu-bridges.nix
Normal file
@@ -0,0 +1,12 @@
|
||||
{ config, libs, pkgs, ... }:
|
||||
{
|
||||
networking.bridges.virtbr0.interfaces = [
|
||||
"enp4s0"
|
||||
];
|
||||
|
||||
networking.interfaces.virtbr0 = {
|
||||
useDHCP = true;
|
||||
};
|
||||
|
||||
virtualisation.libvirtd.allowedBridges = [ "virtbr0" ];
|
||||
}
|
||||
Reference in New Issue
Block a user