From 8e9b074467006c76768efe04cf1fb1ef9d652c67 Mon Sep 17 00:00:00 2001 From: sefidel Date: Wed, 24 Jan 2024 13:29:27 +0900 Subject: initial commit --- modules/services/nebula.nix | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 modules/services/nebula.nix (limited to 'modules/services/nebula.nix') 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