nixos-config/mastus/nebula.nix

26 lines
595 B
Nix
Raw Permalink Normal View History

2022-11-19 07:00:23 +01:00
{ config, pkgs, ... }:
let mastus = "37.252.120.145";
in {
services.nebula.networks.gabriel = {
enable = true;
ca = "/etc/nebula/gabriel/ca.crt";
cert = "/etc/nebula/gabriel/mastus.crt";
key = "/etc/nebula/gabriel/mastus.key";
isLighthouse = true;
staticHostMap = {
"192.168.18.36" = [ "${mastus}:4242" ];
};
firewall.inbound = [ { port = "any"; proto = "any"; host = "any"; } ];
2022-11-19 07:30:32 +01:00
settings = {
serve_dns = true;
2022-11-19 08:19:29 +01:00
lighthouse.dns = { host = "192.168.18.36"; port = 5353; };
2022-11-19 07:30:32 +01:00
};
2022-11-19 07:00:23 +01:00
};
networking.firewall.allowedUDPPorts = [ 4242 ];
}