nebula vpn setup
This commit is contained in:
parent
93a82fad10
commit
47161357f7
2 changed files with 26 additions and 0 deletions
|
@ -16,6 +16,7 @@ in {
|
|||
./hardware-configuration.nix
|
||||
./egirls-qa.nix
|
||||
./postfix.nix
|
||||
./nebula.nix
|
||||
#./stalwart.nix
|
||||
#./vpn.nix
|
||||
#/home/jaina/src/nix-deployments/nordvpn/containers.nix
|
||||
|
|
25
nebula.nix
Normal file
25
nebula.nix
Normal file
|
@ -0,0 +1,25 @@
|
|||
{ 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";
|
||||
}];
|
||||
};
|
||||
}
|
Loading…
Reference in a new issue