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
2024-07-17 16:05:33 +02:00

33 lines
523 B
Nix

{ config, lib, pkgs, ... }:
{
networking = {
hostName = "vanaheim";
defaultGateway = "";
usePredictableInterfaceNames = false;
nameservers = [
"1.1.1.1"
"8.8.8.8"
];
interfaces = {
eth0 = {
ipv4 = {
addresses = [{
address = "";
prefixLength = 24;
}];
};
};
};
nat = {
enable = true;
enableIPv6 = true;
internalInterfaces = [ "ve-+" ];
externalInterface = "eth0";
};
};
}