nixos-config/hosts/vm-infra/configuration.nix

40 lines
615 B
Nix
Raw Normal View History

2025-11-03 13:45:59 +01:00
{
2025-11-07 21:11:35 +01:00
inputs,
2025-11-03 13:45:59 +01:00
...
}:
{
# State version
system.stateVersion = "25.05";
# Machine hostname
networking.hostName = "vm-infra";
# Enabled modules
modules = {
profiles.vm.enable = true;
};
2025-11-07 21:59:53 +01:00
# Setup JOOL NAT64
networking.jool = {
2025-11-03 13:45:59 +01:00
enable = true;
2025-11-14 14:23:18 +01:00
nat64.default = {
global.pool6 = "64:ff9b::/96";
pool4 = [
{
protocol = "TCP";
prefix = "10.64.0.1/32";
}
{
protocol = "UDP";
prefix = "10.64.0.1/32";
}
{
protocol = "ICMP";
prefix = "10.64.0.1/32";
}
];
};
2025-11-03 13:45:59 +01:00
};
}