petalius: add to nebula
This commit is contained in:
parent
06a4738877
commit
429a7a1e55
23
nebula.nix
Normal file
23
nebula.nix
Normal file
@ -0,0 +1,23 @@
|
|||||||
|
{ config, pkgs, ... }:
|
||||||
|
|
||||||
|
let mastus = "37.252.120.145"; hostname = config.networking.hostName;
|
||||||
|
in {
|
||||||
|
services.nebula.networks.gabriel = {
|
||||||
|
enable = true;
|
||||||
|
ca = "/etc/nebula/gabriel/ca.crt";
|
||||||
|
cert = "/etc/nebula/gabriel/${hostname}.crt";
|
||||||
|
key = "/etc/nebula/gabriel/${hostname}.key";
|
||||||
|
|
||||||
|
staticHostMap = {
|
||||||
|
"192.168.18.36" = [ "${mastus}:4242" ];
|
||||||
|
};
|
||||||
|
lighthouses = [
|
||||||
|
"192.168.18.36"
|
||||||
|
];
|
||||||
|
|
||||||
|
firewall.outbound = [ { port = "any"; proto = "any"; host = "any"; } ];
|
||||||
|
firewall.inbound = [ { port = "any"; proto = "any"; host = "any"; } ];
|
||||||
|
};
|
||||||
|
|
||||||
|
networking.firewall.allowedUDPPorts = [ 4242 ];
|
||||||
|
}
|
@ -14,6 +14,7 @@
|
|||||||
./huion.nix
|
./huion.nix
|
||||||
./nvim05.nix
|
./nvim05.nix
|
||||||
./nm-restart.nix
|
./nm-restart.nix
|
||||||
|
./nebula.nix
|
||||||
];
|
];
|
||||||
|
|
||||||
hardware.enableRedistributableFirmware = true;
|
hardware.enableRedistributableFirmware = true;
|
||||||
|
Loading…
Reference in New Issue
Block a user