mirror of
https://github.com/tboerger/nixos-config
synced 2024-11-22 18:21:58 +01:00
33 lines
523 B
Nix
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";
|
|
};
|
|
};
|
|
}
|