mirror of
https://github.com/SebastianStork/nixos-config.git
synced 2026-03-23 09:58:27 +01:00
Compare commits
No commits in common. "f93908d1570c2c0c21f50a1b2043e407f5e751f2" and "4cd24ddfc4d6499ccfb44c16152d5d959ca716c0" have entirely different histories.
f93908d157
...
4cd24ddfc4
1 changed files with 6 additions and 13 deletions
|
|
@ -9,11 +9,6 @@ let
|
|||
netCfg = config.custom.networking;
|
||||
|
||||
publicPort = 47141;
|
||||
|
||||
lighthouses =
|
||||
netCfg.peers
|
||||
|> lib.filter (peer: peer.overlay.isLighthouse)
|
||||
|> lib.map (lighthouse: lighthouse.overlay.address);
|
||||
in
|
||||
{
|
||||
options.custom.services.nebula = {
|
||||
|
|
@ -76,16 +71,14 @@ in
|
|||
key = config.sops.secrets."nebula/host-key".path;
|
||||
|
||||
tun.device = netCfg.overlay.interface;
|
||||
listen = {
|
||||
host = lib.mkIf (netCfg.underlay.address != null) netCfg.underlay.address;
|
||||
port = lib.mkIf netCfg.underlay.isPublic publicPort;
|
||||
};
|
||||
listen.port = lib.mkIf netCfg.underlay.isPublic publicPort;
|
||||
|
||||
inherit (netCfg.overlay) isLighthouse;
|
||||
lighthouses = lib.mkIf (!netCfg.overlay.isLighthouse) lighthouses;
|
||||
|
||||
isRelay = netCfg.overlay.isLighthouse;
|
||||
relays = lib.mkIf (!netCfg.overlay.isLighthouse) lighthouses;
|
||||
lighthouses = lib.mkIf (!netCfg.overlay.isLighthouse) (
|
||||
netCfg.peers
|
||||
|> lib.filter (peer: peer.overlay.isLighthouse)
|
||||
|> lib.map (lighthouse: lighthouse.overlay.address)
|
||||
);
|
||||
|
||||
staticHostMap =
|
||||
netCfg.peers
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue