2024-10-15 16:53:31 -05:00
|
|
|
{config, ...}: let
|
2024-12-14 17:15:55 -06:00
|
|
|
inherit (import ../../modules/nebula/shared.nix) userGroup;
|
2024-10-15 16:53:31 -05:00
|
|
|
in {
|
|
|
|
sops.secrets."nebula-key" = {
|
|
|
|
mode = "0440";
|
|
|
|
owner = userGroup;
|
|
|
|
group = userGroup;
|
|
|
|
};
|
|
|
|
|
2024-12-15 19:15:59 -06:00
|
|
|
# TODO: why?
|
|
|
|
networking.firewall.allowedUDPPorts = [4242];
|
|
|
|
|
2024-12-14 17:15:55 -06:00
|
|
|
gen.nebula = {
|
|
|
|
enable = true;
|
|
|
|
enableLighthouse = false;
|
2024-11-03 20:30:30 -06:00
|
|
|
|
2024-10-15 16:53:31 -05:00
|
|
|
cert = ../../keys/n-srv-eidola.crt;
|
|
|
|
key = config.sops.secrets."nebula-key".path;
|
|
|
|
|
2024-12-14 17:15:55 -06:00
|
|
|
extraInbound = [
|
2024-12-13 16:47:09 -06:00
|
|
|
# Allow iperf3 from anyone
|
|
|
|
{
|
|
|
|
port = 5201;
|
|
|
|
proto = "any";
|
|
|
|
host = "any";
|
|
|
|
}
|
2024-10-15 16:53:31 -05:00
|
|
|
];
|
|
|
|
};
|
|
|
|
}
|