nixos-conf/services/siit-dc.nix

28 lines
536 B
Nix
Raw Normal View History

2025-02-21 02:03:23 +02:00
{ ... }:
let
gua_pref = "2001:14ba:a090:39";
2025-02-21 03:42:55 +02:00
v4_pref = "192.168.250";
2025-02-21 02:03:23 +02:00
in
{
2025-02-21 12:03:36 +02:00
boot.kernel.sysctl = {
"net.ipv4.conf.all.forwarding" = 1;
"net.ipv6.conf.all.forwarding" = 1;
};
2025-02-21 02:03:23 +02:00
networking = {
jool = {
enable = true;
siit.default = {
global.pool6 = "${gua_pref}46::/96";
# Explicit address mappings
eamt = [
{
2025-02-21 02:33:43 +02:00
"ipv6 prefix" = "${gua_pref}d1:be24:11ff:fe42:dd76/128";
2025-02-21 03:42:55 +02:00
"ipv4 prefix" = "${v4_pref}.1/32";
2025-02-21 02:03:23 +02:00
}
];
};
};
};
}