2022-01-25 18:12:54 +01:00
|
|
|
{ lib, ... }:
|
2023-01-25 16:55:22 +01:00
|
|
|
|
|
|
|
{
|
2021-11-13 00:59:59 +01:00
|
|
|
networking = {
|
|
|
|
hostName = "public-cof";
|
|
|
|
|
2023-01-25 16:55:22 +01:00
|
|
|
useNetworkd = true;
|
|
|
|
|
|
|
|
firewall = { enable = true; allowedTCPPorts = [ 22 ]; };
|
|
|
|
};
|
|
|
|
|
|
|
|
systemd.network.networks = {
|
|
|
|
"10-ens18" = {
|
|
|
|
name = "ens18";
|
|
|
|
address = [ "2001:470:1f13:187:c08e:feff:fe4d:f5f5/64" ];
|
|
|
|
|
|
|
|
DHCP = "ipv4";
|
|
|
|
|
|
|
|
dhcpV4Config.RouteMetric = 10;
|
2022-01-24 22:04:43 +01:00
|
|
|
};
|
2021-11-13 00:59:59 +01:00
|
|
|
|
2023-01-25 16:55:22 +01:00
|
|
|
"10-ens19" = {
|
|
|
|
name = "ens19";
|
|
|
|
address = [ "10.1.1.21/22" ];
|
|
|
|
|
|
|
|
DHCP = "ipv4";
|
2022-01-25 18:12:54 +01:00
|
|
|
};
|
2022-09-17 21:26:56 +02:00
|
|
|
|
2023-01-25 16:55:22 +01:00
|
|
|
"10-ens20" = {
|
|
|
|
name = "ens20";
|
|
|
|
address = [ "45.13.104.27/32" "45.13.104.29/32" ];
|
|
|
|
|
|
|
|
DHCP = "ipv4";
|
|
|
|
};
|
2021-11-13 00:59:59 +01:00
|
|
|
};
|
2022-09-10 16:17:01 +02:00
|
|
|
|
|
|
|
services.nginx.defaultListenAddresses = [ "[::0]" "45.13.104.27" ];
|
2021-11-13 00:59:59 +01:00
|
|
|
}
|