From b6df3d14a431ef23c1fe1c138b109028f61e5b74 Mon Sep 17 00:00:00 2001 From: sefidel Date: Thu, 11 Jan 2024 22:53:02 +0900 Subject: feat(modules/nebula): init --- modules/services/nebula.nix | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 modules/services/nebula.nix (limited to 'modules/services') diff --git a/modules/services/nebula.nix b/modules/services/nebula.nix new file mode 100644 index 0000000..3f8c38a --- /dev/null +++ b/modules/services/nebula.nix @@ -0,0 +1,18 @@ +{ config, options, lib, ... }: + +with lib; +let + cfg = config.modules.services.nebula; +in +{ + options.modules.services.nebula = { + enable = mkEnableOption "Configure a single-network Nebula"; + + networks = options.services.nebula.networks; + }; + + config = mkIf cfg.enable { + # The module is enabled when one or more module is enabled. + services.nebula.networks = cfg.networks; + }; +} -- cgit 1.4.1