June
e88982d7c7
Give the host a static v4 as well. Also let the nginx redirect from the hosts FQDN to the service domain.
31 lines
622 B
Nix
31 lines
622 B
Nix
{ ... }:
|
|
|
|
{
|
|
networking.interfaces.net0 = {
|
|
ipv4.addresses = [
|
|
{
|
|
address = "10.31.208.24";
|
|
prefixLength = 23;
|
|
}
|
|
];
|
|
};
|
|
networking.defaultGateway = "10.31.208.1";
|
|
networking.nameservers = [ "10.31.208.1" ];
|
|
networking.search = [ "z9.ccchh.net" ];
|
|
|
|
networking.interfaces.net0 = {
|
|
ipv6.addresses = [
|
|
{
|
|
address = "2a07:c480:0:1d0::66";
|
|
prefixLength = 64;
|
|
}
|
|
];
|
|
};
|
|
networking.defaultGateway6 = "2a07:c480:0:1d0::1";
|
|
|
|
systemd.network.links."10-net0" = {
|
|
matchConfig.MACAddress = "7E:3C:F0:77:8A:F4";
|
|
linkConfig.Name = "net0";
|
|
};
|
|
}
|