nixfiles/hosts/zora/networking.nix
2025-10-12 01:36:56 +02:00

45 lines
707 B
Nix

{ ... }:
{
# Networking
networking = {
hostName = "zora";
domain = "lyes.eu";
enableIPv6 = false;
hostId = "233c35ca";
firewall = {
enable = true;
allowedTCPPorts = [
22
80
443
];
allowedUDPPorts = [
80
443
];
};
interfaces = {
ens2f0 = {
ipv4 = {
addresses = [
{
address = "185.230.78.13";
prefixLength = 24;
}
];
routes = [
{
address = "0.0.0.0";
prefixLength = 0;
via = "185.230.78.99";
}
];
};
};
};
};
}