1
0
mirror of https://github.com/tboerger/nixos-config synced 2024-11-22 18:21:58 +01:00
github.com-tboerger-nixos-c.../servers/vanaheim/networking.nix

33 lines
523 B
Nix
Raw Permalink Normal View History

2022-02-20 17:46:48 +01:00
{ config, lib, pkgs, ... }:
{
networking = {
hostName = "vanaheim";
defaultGateway = "";
usePredictableInterfaceNames = false;
2022-02-20 17:46:48 +01:00
nameservers = [
"1.1.1.1"
"8.8.8.8"
];
interfaces = {
eth0 = {
2022-02-20 17:46:48 +01:00
ipv4 = {
addresses = [{
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
};
}