egirls-nixos/nebula.nix

27 lines
563 B
Nix
Raw Permalink Normal View History

2024-08-08 01:23:56 +00:00
{ pkgs, lib, ... }:
{
environment.systemPackages = [ pkgs.nebula ];
services.nebula.networks.home = {
enable = true;
isLighthouse = true;
2024-08-08 01:27:29 +00:00
cert = "/var/lib/nebula/node.crt";
key = "/var/lib/nebula/node.key";
ca = "/var/lib/nebula/ca.crt";
2024-08-08 03:04:43 +00:00
firewall.inbound = [{
host = "any";
port = "any";
proto = "any";
}];
firewall.outbound = [{
host = "any";
port = "any";
proto = "any";
}];
2024-08-08 01:23:56 +00:00
};
2024-08-08 02:58:23 +00:00
networking.firewall.allowedTCPPorts = [ 4242 ];
networking.firewall.allowedUDPPorts = [ 4242 ];
2024-08-08 01:23:56 +00:00
}