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 {
|
2023-02-22 03:29:43 +00:00
|
|
|
# This is expected to be /48 block (i.e., `fc00:b0de:5685::/48`).
|
|
|
|
# The thing is generated using a ULA generator.
|
|
|
|
privateIPv6Prefix = "fd89:c181:8016";
|
2023-02-08 10:00:35 +00:00
|
|
|
|
2023-01-21 10:57:37 +00:00
|
|
|
# Wireguard-related things.
|
2023-01-17 08:05:11 +00:00
|
|
|
wireguardPort = 51820;
|
2023-01-23 05:29:42 +00:00
|
|
|
|
2023-02-09 06:17:59 +00:00
|
|
|
# This IPv4 network block should have /13 for the Wireguard network.
|
|
|
|
wireguardIPv4Prefix = "172.28.0";
|
|
|
|
|
|
|
|
# This IPv6 network prefix should have /64 for the entire Wireguard network.
|
2023-02-14 03:00:57 +00:00
|
|
|
wireguardIPv6Prefix = "${privateIPv6Prefix}:ffff";
|
2023-01-16 03:44:21 +00:00
|
|
|
}
|