kusakabe: enable libvirtd
This commit is contained in:
parent
054c4ee1dd
commit
03e5dbd72e
1 changed files with 12 additions and 3 deletions
|
@ -59,19 +59,28 @@ in {
|
|||
useDHCP = false;
|
||||
defaultGateway = {
|
||||
address = "188.165.197.254";
|
||||
interface = "eno1";
|
||||
interface = "br-ext";
|
||||
};
|
||||
defaultGateway6 = {
|
||||
address = "2001:41d0:2:8eff:ff:ff:ff:ff";
|
||||
interface = "eno1";
|
||||
interface = "br-ext";
|
||||
};
|
||||
interfaces.eno1 = {
|
||||
interfaces.br-ext = {
|
||||
useDHCP = false;
|
||||
ipv4.addresses = [{ address = "188.165.197.49"; prefixLength = 24; }];
|
||||
ipv6.addresses = [{ address = "2001:41d0:2:8e31::1"; prefixLength = 64; }];
|
||||
virtual = true;
|
||||
};
|
||||
bridges.br-ext.interfaces = [ "eno1" ];
|
||||
firewall.allowPing = true;
|
||||
};
|
||||
|
||||
virtualisation.libvirtd = {
|
||||
enable = true;
|
||||
qemuRunAsRoot = false;
|
||||
allowedBridges = [ "br-ext" ];
|
||||
};
|
||||
users.users.lukegb.extraGroups = lib.mkAfter [ "libvirtd" ];
|
||||
|
||||
system.stateVersion = "20.03";
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue