diff options
author | sefidel <contact@sefidel.net> | 2024-01-11 22:53:02 +0900 |
---|---|---|
committer | sefidel <contact@sefidel.net> | 2024-01-12 00:18:47 +0900 |
commit | b6df3d14a431ef23c1fe1c138b109028f61e5b74 (patch) | |
tree | 291b8bcbca1fbba6eff0af5e0ca6c440b96eb13b /modules | |
parent | ca56a5bb7342666ac6edbbc82b38d60952175ab6 (diff) | |
download | infra-b6df3d14a431ef23c1fe1c138b109028f61e5b74.tar.gz infra-b6df3d14a431ef23c1fe1c138b109028f61e5b74.zip |
feat(modules/nebula): init
Diffstat (limited to 'modules')
-rw-r--r-- | modules/services/nebula.nix | 18 |
1 files changed, 18 insertions, 0 deletions
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; + }; +} |