27 lines
619 B
Nix
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;
|
|
};
|
|
};
|
|
}
|