This commit is contained in:
mjallen18
2026-03-23 17:49:38 -05:00
parent 5952eddecb
commit 01d1086580
2 changed files with 11 additions and 2 deletions

View File

@@ -31,6 +31,13 @@ let
lib.${namespace}.mkOpt types.str "jallen-nebula"
"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
#
@@ -114,6 +121,8 @@ let
lighthouses = cfg.lighthouses;
staticHostMap = cfg.staticHostMap;
tun.device = if cfg.tunDevice != null then cfg.tunDevice else "nebula0";
listen = {
host = cfg.listenAddress;
port = cfg.port;

View File

@@ -13,7 +13,7 @@ const QuickSettingsMenu = Main.panel.statusArea.quickSettings;
// ── constants ────────────────────────────────────────────────────────────────
const SERVICE_NAME = 'nebula@jallen-nebula.service';
const IFACE_NAME = 'jallen-nebula';
const IFACE_NAME = 'nebula0';
const POLL_INTERVAL_SECS = 5;
const LOG_PREFIX = '[nebula-vpn]';
@@ -133,7 +133,7 @@ class NebulaToggle extends QuickSettings.QuickMenuToggle {
});
// 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 ──────────────────────────────────────────────