mastus: add nebula

This commit is contained in:
Gabriel Ebner 2022-11-18 22:00:23 -08:00
parent 2aabd4f7db
commit 06a4738877
2 changed files with 23 additions and 0 deletions

View File

@ -17,6 +17,7 @@
./radicale.nix ./radicale.nix
# ./ttrss.nix # ./ttrss.nix
./dns.nix ./dns.nix
./nebula.nix
]; ];
boot.loader.grub.enable = true; boot.loader.grub.enable = true;

22
mastus/nebula.nix Normal file
View File

@ -0,0 +1,22 @@
{ 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"; } ];
settings.lighthouse.dns = { host = "0.0.0.0"; port = 53; };
};
networking.firewall.allowedUDPPorts = [ 4242 ];
}