add nebula mesh vpn
This commit is contained in:
parent
df0b6e5187
commit
21b1832dca
12 changed files with 203 additions and 3 deletions
|
|
@ -50,6 +50,7 @@
|
|||
network.tailscale
|
||||
network.avahi
|
||||
network.networkd
|
||||
network.nebula
|
||||
]);
|
||||
|
||||
nixpkgs.config = {
|
||||
|
|
|
|||
|
|
@ -57,6 +57,7 @@
|
|||
network.localsend
|
||||
network.tailscale
|
||||
network.goldberg
|
||||
network.nebula
|
||||
|
||||
desktop.sway
|
||||
|
||||
|
|
|
|||
|
|
@ -14,6 +14,7 @@
|
|||
./profiles/backups.nix
|
||||
./profiles/caddy.nix
|
||||
./profiles/forgejo.nix
|
||||
./profiles/nebula.nix
|
||||
./profiles/prometheus.nix
|
||||
]
|
||||
++ (with systemProfiles; [
|
||||
|
|
|
|||
26
hosts/rackserv/profiles/nebula.nix
Normal file
26
hosts/rackserv/profiles/nebula.nix
Normal file
|
|
@ -0,0 +1,26 @@
|
|||
{config, ...}: {
|
||||
networking.firewall.allowedTCPPorts = [4343];
|
||||
services.nebula.networks.xunmesh = {
|
||||
enable = true;
|
||||
isLighthouse = true;
|
||||
cert = config.sops.secrets.nebula-cert.path;
|
||||
key = config.sops.secrets.nebula-key.path;
|
||||
ca = config.sops.secrets.nebula-ca-cert.path;
|
||||
firewall = {
|
||||
inbound = [
|
||||
{
|
||||
host = "any";
|
||||
port = "any";
|
||||
proto = "any";
|
||||
}
|
||||
];
|
||||
outbound = [
|
||||
{
|
||||
host = "any";
|
||||
port = "any";
|
||||
proto = "any";
|
||||
}
|
||||
];
|
||||
};
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue