2024-12-29 15:42:43 -05:00

27 lines
619 B
Nix

{ lib
, domain ? "linode-domain"
, hostname ? "linode-hostname"
, ... }:
{
networking = {
useDHCP = lib.mkForce false;
usePredictableInterfaceNames = false;
interfaces.eth0 = {
useDHCP = true;
# Linode expects IPv6 privacy extensions to be disabled, so disable them
# See: https://www.linode.com/docs/guides/manual-network-configuration/#static-vs-dynamic-addressing
tempAddress = "disabled";
};
domain = domain;
hostName = hostname;
firewall = {
enable = true;
};
};
}