infra/nixos/hosts/eidola/nebula.nix

27 lines
496 B
Nix

{config, ...}: let
inherit (import ../../modules/nebula/shared.nix) userGroup;
in {
sops.secrets."nebula-key" = {
mode = "0440";
owner = userGroup;
group = userGroup;
};
gen.nebula = {
enable = true;
enableLighthouse = false;
cert = ../../keys/n-srv-eidola.crt;
key = config.sops.secrets."nebula-key".path;
extraInbound = [
# Allow iperf3 from anyone
{
port = 5201;
proto = "any";
host = "any";
}
];
};
}