Libvirt: Difference between revisions
Phanirithvij (talk | contribs) m fix spice git url |
→Bridge networking: Add default gateway in guest machine example |
||
| Line 87: | Line 87: | ||
{{file|/etc/nixos/configuration.nix|nix|<nowiki> | {{file|/etc/nixos/configuration.nix|nix|<nowiki> | ||
networking.interfaces.enp1s0 | networking.interfaces.enp1s0 = { | ||
ipv4.addresses = [{ | |||
address = "10.25.0.2"; | |||
}]; | prefixLength = 24; | ||
}]; | |||
defaultGateway = { | |||
address = "10.25.0.1"; | |||
interface = "ens1s0"; | |||
}; | |||
}; | |||
</nowiki>}} | </nowiki>}} | ||