nebula
This commit is contained in:
@@ -31,6 +31,13 @@ let
|
|||||||
lib.${namespace}.mkOpt types.str "jallen-nebula"
|
lib.${namespace}.mkOpt types.str "jallen-nebula"
|
||||||
"Nebula network name (used as the systemd service suffix and interface name)";
|
"Nebula network name (used as the systemd service suffix and interface name)";
|
||||||
|
|
||||||
|
# Linux interface names are capped at 15 characters. Nebula derives the
|
||||||
|
# default tun device name as "nebula.<networkName>" which easily exceeds
|
||||||
|
# that limit. Set an explicit short name here to avoid silent truncation.
|
||||||
|
tunDevice =
|
||||||
|
lib.${namespace}.mkOpt (types.nullOr types.str) null
|
||||||
|
"Explicit tun device name (max 15 chars). Defaults to nebula0 when unset.";
|
||||||
|
|
||||||
# -----------------------------------------------------------------------
|
# -----------------------------------------------------------------------
|
||||||
# SOPS secret location
|
# SOPS secret location
|
||||||
#
|
#
|
||||||
@@ -114,6 +121,8 @@ let
|
|||||||
lighthouses = cfg.lighthouses;
|
lighthouses = cfg.lighthouses;
|
||||||
staticHostMap = cfg.staticHostMap;
|
staticHostMap = cfg.staticHostMap;
|
||||||
|
|
||||||
|
tun.device = if cfg.tunDevice != null then cfg.tunDevice else "nebula0";
|
||||||
|
|
||||||
listen = {
|
listen = {
|
||||||
host = cfg.listenAddress;
|
host = cfg.listenAddress;
|
||||||
port = cfg.port;
|
port = cfg.port;
|
||||||
|
|||||||
@@ -13,7 +13,7 @@ const QuickSettingsMenu = Main.panel.statusArea.quickSettings;
|
|||||||
// ── constants ────────────────────────────────────────────────────────────────
|
// ── constants ────────────────────────────────────────────────────────────────
|
||||||
|
|
||||||
const SERVICE_NAME = 'nebula@jallen-nebula.service';
|
const SERVICE_NAME = 'nebula@jallen-nebula.service';
|
||||||
const IFACE_NAME = 'jallen-nebula';
|
const IFACE_NAME = 'nebula0';
|
||||||
const POLL_INTERVAL_SECS = 5;
|
const POLL_INTERVAL_SECS = 5;
|
||||||
const LOG_PREFIX = '[nebula-vpn]';
|
const LOG_PREFIX = '[nebula-vpn]';
|
||||||
|
|
||||||
@@ -133,7 +133,7 @@ class NebulaToggle extends QuickSettings.QuickMenuToggle {
|
|||||||
});
|
});
|
||||||
|
|
||||||
// Header shown at the top of the expanded menu panel
|
// Header shown at the top of the expanded menu panel
|
||||||
this.menu.setHeader('network-vpn-symbolic', 'Nebula VPN', IFACE_NAME);
|
this.menu.setHeader('network-vpn-symbolic', 'Nebula VPN', 'jallen-nebula');
|
||||||
|
|
||||||
// ── menu body ──────────────────────────────────────────────
|
// ── menu body ──────────────────────────────────────────────
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user