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;
|
useDHCP = false;
|
||||||
defaultGateway = {
|
defaultGateway = {
|
||||||
address = "188.165.197.254";
|
address = "188.165.197.254";
|
||||||
interface = "eno1";
|
interface = "br-ext";
|
||||||
};
|
};
|
||||||
defaultGateway6 = {
|
defaultGateway6 = {
|
||||||
address = "2001:41d0:2:8eff:ff:ff:ff:ff";
|
address = "2001:41d0:2:8eff:ff:ff:ff:ff";
|
||||||
interface = "eno1";
|
interface = "br-ext";
|
||||||
};
|
};
|
||||||
interfaces.eno1 = {
|
interfaces.br-ext = {
|
||||||
useDHCP = false;
|
useDHCP = false;
|
||||||
ipv4.addresses = [{ address = "188.165.197.49"; prefixLength = 24; }];
|
ipv4.addresses = [{ address = "188.165.197.49"; prefixLength = 24; }];
|
||||||
ipv6.addresses = [{ address = "2001:41d0:2:8e31::1"; prefixLength = 64; }];
|
ipv6.addresses = [{ address = "2001:41d0:2:8e31::1"; prefixLength = 64; }];
|
||||||
|
virtual = true;
|
||||||
};
|
};
|
||||||
|
bridges.br-ext.interfaces = [ "eno1" ];
|
||||||
firewall.allowPing = true;
|
firewall.allowPing = true;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
virtualisation.libvirtd = {
|
||||||
|
enable = true;
|
||||||
|
qemuRunAsRoot = false;
|
||||||
|
allowedBridges = [ "br-ext" ];
|
||||||
|
};
|
||||||
|
users.users.lukegb.extraGroups = lib.mkAfter [ "libvirtd" ];
|
||||||
|
|
||||||
system.stateVersion = "20.03";
|
system.stateVersion = "20.03";
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue