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

21 lines
666 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 {
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";
# Wireguard-related things.
wireguardPort = 51820;
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";
}