about summary refs log tree commit diff
path: root/modules/services/nebula.nix
blob: 3f8c38a98b3d83d2328c1a66dabadc739f71eb77 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
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;
  };
}