From d92342ab4c9a5312b288416b38de64b26ff9caaf Mon Sep 17 00:00:00 2001 From: SebastianStork Date: Sat, 14 Feb 2026 23:47:32 +0100 Subject: [PATCH] networking/overlay: Move defaults from nebula --- modules/system/networking/overlay.nix | 8 ++++---- modules/system/services/nebula/default.nix | 7 ------- 2 files changed, 4 insertions(+), 11 deletions(-) diff --git a/modules/system/networking/overlay.nix b/modules/system/networking/overlay.nix index 243e558..7894900 100644 --- a/modules/system/networking/overlay.nix +++ b/modules/system/networking/overlay.nix @@ -11,7 +11,7 @@ in options.custom.networking.overlay = { networkCidr = lib.mkOption { type = lib.types.nonEmptyStr; - default = ""; + default = "10.254.250.0/24"; }; networkAddress = lib.mkOption { type = lib.types.nonEmptyStr; @@ -25,7 +25,7 @@ in }; domain = lib.mkOption { type = lib.types.nonEmptyStr; - default = ""; + default = "splitleaf.de"; }; fqdn = lib.mkOption { type = lib.types.nonEmptyStr; @@ -43,11 +43,11 @@ in }; interface = lib.mkOption { type = lib.types.nonEmptyStr; - default = ""; + default = "nebula"; }; systemdUnit = lib.mkOption { type = lib.types.nonEmptyStr; - default = ""; + default = "nebula@mesh.service"; }; isLighthouse = lib.mkEnableOption ""; diff --git a/modules/system/services/nebula/default.nix b/modules/system/services/nebula/default.nix index d34e286..27956ee 100644 --- a/modules/system/services/nebula/default.nix +++ b/modules/system/services/nebula/default.nix @@ -51,13 +51,6 @@ in message = "`${netCfg.hostName}` is a Nebula lighthouse, but `underlay.isPublic` is not set. Lighthouses must be publicly reachable."; }; - custom.networking.overlay = { - networkCidr = "10.254.250.0/24"; - domain = "splitleaf.de"; - interface = "nebula"; - systemdUnit = "nebula@mesh.service"; - }; - sops.secrets."nebula/host-key" = lib.mkIf (cfg.privateKeyPath == null) { owner = config.users.users.nebula-mesh.name; restartUnits = [ "nebula@mesh.service" ];