fix(#3343): make the queue a swarm-required service
enableRequiredServices asserts the services that exist once per swarm and are optional -- its own description says so -- and the queue meets that rule. It was left out because this file predates the swarm-nats container by nine days and was never revisited, not because anyone decided against it. The all-local mode already derives nats.autoGenerateCallout, so it was minting the queue's callout nkeys and never starting the queue. With this the mode's loopback derivation for the controller points at something that is actually running.
This commit is contained in:
parent
072dbd80a7
commit
9a5945c739
1 changed files with 11 additions and 0 deletions
|
|
@ -47,5 +47,16 @@ in
|
|||
config.services.hyperhive.swarm = {
|
||||
matrix.enable = lib.mkDefault swarmCfg.enableRequiredServices;
|
||||
authelia.enable = lib.mkDefault swarmCfg.enableRequiredServices;
|
||||
# The queue. Added later than the two above and missed at the time —
|
||||
# this file predates the `swarm-nats` container by nine days and had
|
||||
# not been revisited since, so its absence was sequence rather than
|
||||
# intent. It meets the rule in the option's own description exactly:
|
||||
# once per swarm, and optional.
|
||||
#
|
||||
# The tell that it was an omission: `local-defaults.nix` already
|
||||
# derives `nats.autoGenerateCallout` from the all-local mode, so that
|
||||
# mode was minting the queue's callout nkeys and then never starting
|
||||
# the queue they authenticate against.
|
||||
nats.enable = lib.mkDefault swarmCfg.enableRequiredServices;
|
||||
};
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue