From 94d678b93ba4f2fc0edb2d093e798a3e32f200a4 Mon Sep 17 00:00:00 2001 From: Max Date: Fri, 23 Aug 2024 02:49:23 +0200 Subject: [PATCH] modules/systemd-extras: distributed: support registering multiple services --- modules/systemd-extras/distributed.nix | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/modules/systemd-extras/distributed.nix b/modules/systemd-extras/distributed.nix index bbda5a9..e29e710 100644 --- a/modules/systemd-extras/distributed.nix +++ b/modules/systemd-extras/distributed.nix @@ -17,6 +17,11 @@ with lib; type = with types; nullOr str; default = null; }; + registerServices = mkOption { + description = "Consul services to register when this service gets started."; + type = with types; listOf str; + default = if config.distributed.registerService == null then [ ] else [ config.distributed.registerService ]; + }; }; })); };