mirror of
https://github.com/foo-dogsquared/nixos-config.git
synced 2025-01-31 16:57:55 +00:00
Gabriel Arazas
6e26946312
This is just made in advanced for the upcoming config updates of each services.
21 lines
666 B
Nix
21 lines
666 B
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 {
|
|
# 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;
|
|
|
|
# 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.
|
|
wireguardIPv6Prefix = "${privateIPv6Prefix}:ffff";
|
|
}
|