nixos-config/hosts/plover/modules/hardware/networks.nix

23 lines
663 B
Nix
Raw Normal View History

# 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
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}";
privateIPNetworkRange = "172.16.0.0/32";
privateNetworkGatewayIP = "172.16.0.1/32";
2023-01-19 12:16:01 +00:00
wireguardIPv6 = "fdee:b0de:54e6:ae74::";
wireguardIPv6LengthPrefix = 64;
wireguardPort = 51820;
}