Files
vmimages/HyperV/networking.nix
2023-11-21 14:00:06 +00:00

25 lines
471 B
Nix

{...}: {
# This file was populated at runtime with the networking
# details gathered from the active system.
networking = {
useDHCP = false;
nameservers = [
"192.168.1.1"
"192.168.1.250"
"8.8.8.8"
"8.8.4.4"
];
defaultGateway = {
address = "192.168.1.1";
};
interfaces.eth0 = {
ipv4.addresses = [
{
address = "192.168.1.230";
prefixLength = 24;
}
];
};
};
}