26 lines
549 B
Nix
26 lines
549 B
Nix
|
{ lib, pkgs, ... }:
|
||
|
|
||
|
{
|
||
|
environment.systemPackages = with pkgs; [ nebula ];
|
||
|
services.nebula.networks.home = {
|
||
|
enable = true;
|
||
|
cert = "/var/lib/nebula/harrowhark.crt";
|
||
|
key = "/var/lib/nebula/harrowhark.key";
|
||
|
ca = "/var/lib/nebula/ca.crt";
|
||
|
|
||
|
lighthouses = [ "172.16.0.1" ];
|
||
|
staticHostMap."172.16.0.1" = [ "5.78.100.40:4242" ];
|
||
|
|
||
|
firewall.inbound = [{
|
||
|
host = "any";
|
||
|
port = "any";
|
||
|
proto = "any";
|
||
|
}];
|
||
|
firewall.outbound = [{
|
||
|
host = "any";
|
||
|
port = "any";
|
||
|
proto = "any";
|
||
|
}];
|
||
|
};
|
||
|
}
|