2022-02-20 17:46:48 +01:00
|
|
|
{ config, lib, pkgs, ... }:
|
|
|
|
|
|
|
|
{
|
|
|
|
networking = {
|
2024-01-30 14:00:15 +01:00
|
|
|
hostName = "vanaheim";
|
|
|
|
defaultGateway = "";
|
|
|
|
usePredictableInterfaceNames = false;
|
2022-02-20 17:46:48 +01:00
|
|
|
|
|
|
|
nameservers = [
|
|
|
|
"1.1.1.1"
|
|
|
|
"8.8.8.8"
|
|
|
|
];
|
|
|
|
|
|
|
|
interfaces = {
|
2022-06-05 22:54:46 +02:00
|
|
|
eth0 = {
|
2022-02-20 17:46:48 +01:00
|
|
|
ipv4 = {
|
|
|
|
addresses = [{
|
2024-01-30 14:00:15 +01:00
|
|
|
address = "";
|
2022-02-20 17:46:48 +01:00
|
|
|
prefixLength = 24;
|
|
|
|
}];
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
2024-07-17 16:05:33 +02:00
|
|
|
|
|
|
|
nat = {
|
|
|
|
enable = true;
|
|
|
|
enableIPv6 = true;
|
|
|
|
internalInterfaces = [ "ve-+" ];
|
|
|
|
externalInterface = "eth0";
|
|
|
|
};
|
2022-02-20 17:46:48 +01:00
|
|
|
};
|
|
|
|
}
|