modules/systemd-extras: distributed: support registering multiple services

This commit is contained in:
Max Headroom 2024-08-23 02:49:23 +02:00
parent f55a60d0bb
commit 94d678b93b

View file

@ -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 ];
};
};
}));
};