2023-01-16 03:44:21 +00:00
|
|
|
# It just contains a set of network-related variables mainly used for
|
|
|
|
# network-related services. Make sure to change this every time you migrate to
|
|
|
|
# a new server.
|
2023-01-20 06:50:27 +00:00
|
|
|
let
|
|
|
|
inherit (builtins) toString;
|
|
|
|
in
|
2023-01-19 12:12:14 +00:00
|
|
|
rec {
|
|
|
|
publicIP = "95.217.212.19";
|
|
|
|
publicIPPrefixLength = 32;
|
2023-01-20 06:50:27 +00:00
|
|
|
publicIP' = "${publicIP}/${toString publicIPPrefixLength}";
|
2023-01-19 12:12:14 +00:00
|
|
|
|
2023-01-16 03:44:21 +00:00
|
|
|
publicIPv6 = "2a01:4f9:c011:a448::";
|
2023-01-19 12:12:14 +00:00
|
|
|
publicIPv6PrefixLength = 64;
|
2023-01-20 06:50:27 +00:00
|
|
|
publicIPv6' = "${publicIPv6}/${toString publicIPv6PrefixLength}";
|
2023-01-16 03:44:21 +00:00
|
|
|
|
2023-01-21 01:03:10 +00:00
|
|
|
# The private network for this host.
|
2023-01-16 03:44:21 +00:00
|
|
|
privateIPNetworkRange = "172.16.0.0/32";
|
|
|
|
privateNetworkGatewayIP = "172.16.0.1/32";
|
2023-01-21 01:03:10 +00:00
|
|
|
privateNetworkServicesPart = "172.18.25";
|
|
|
|
privateNetworkHostPart = hostPart: "${privateNetworkServicesPart}.${toString hostPart}";
|
2023-01-17 08:05:11 +00:00
|
|
|
|
2023-01-19 12:16:01 +00:00
|
|
|
wireguardIPv6 = "fdee:b0de:54e6:ae74::";
|
|
|
|
wireguardIPv6LengthPrefix = 64;
|
2023-01-17 08:05:11 +00:00
|
|
|
wireguardPort = 51820;
|
2023-01-21 01:03:10 +00:00
|
|
|
|
|
|
|
# Applications that are supposed to be internal.
|
|
|
|
atuinHost = privateNetworkHostPart 3;
|
|
|
|
keycloakHost = privateNetworkHostPart 4;
|
2023-01-16 03:44:21 +00:00
|
|
|
}
|