mirror of
https://github.com/foo-dogsquared/nixos-config.git
synced 2025-01-31 22:57:55 +00:00
37 lines
1.2 KiB
Nix
37 lines
1.2 KiB
Nix
# 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.
|
|
let
|
|
inherit (builtins) toString;
|
|
in
|
|
rec {
|
|
publicIP = "95.217.212.19";
|
|
publicIPPrefixLength = 32;
|
|
publicIP' = "${publicIP}/${toString publicIPPrefixLength}";
|
|
|
|
publicIPv6 = "2a01:4f9:c011:a448::";
|
|
publicIPv6PrefixLength = 64;
|
|
publicIPv6' = "${publicIPv6}/${toString publicIPv6PrefixLength}";
|
|
|
|
# The private network for this host.
|
|
privateNetworkGatewayIP = "172.16.0.1/32";
|
|
privateNetworkServicesPart = "172.23.0";
|
|
privateNetworkHostPart = hostPart: "${privateNetworkServicesPart}.${toString hostPart}";
|
|
preferredInternalTLD = "internal";
|
|
|
|
privateIP = privateNetworkHostPart 1;
|
|
privateIPPrefixLength = 16;
|
|
privateIP' = "${privateIPv6}/${toString privateIPv6PrefixLength}";
|
|
|
|
# The IPv6 subnet for this host.
|
|
privateIPv6 = "fdee:b0de:5685:a4b3::";
|
|
privateIPv6PrefixLength = 64;
|
|
privateIPv6' = "${privateIPv6}/${toString privateIPv6PrefixLength}";
|
|
|
|
# Wireguard-related things.
|
|
wireguardIPv4 = "174";
|
|
wireguardIPv6 = "fdee:b0de:54e6:ae74::";
|
|
wireguardIPv6LengthPrefix = 64;
|
|
wireguardPort = 51820;
|
|
}
|