nixos-flake/nebula.nix

29 lines
698 B
Nix
Raw Normal View History

2024-08-30 00:03:55 +00:00
{ lib, pkgs, config, ... }:
2024-08-12 11:57:27 +00:00
{
environment.systemPackages = with pkgs; [ nebula ];
services.nebula.networks.home = {
enable = true;
2024-08-30 00:03:55 +00:00
cert = "/var/lib/nebula/${config.networking.hostName}.crt";
key = "/var/lib/nebula/${config.networking.hostName}.key";
2024-08-12 11:57:27 +00:00
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";
}];
};
2024-08-21 00:26:37 +00:00
networking.hosts."172.16.0.2" =
[ "torrent.home" "sonarr.home" "radarr.home" "prowlarr.home" ];
2024-08-12 11:57:27 +00:00
}