From d7aadda36fb172e104b404744595baac732b7928 Mon Sep 17 00:00:00 2001 From: Emery Hemingway Date: Fri, 24 Jun 2022 09:11:21 -0500 Subject: [PATCH] nixos: add enabled dataspace servers to systemd wants --- nixos/syndicate-server.nix | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/nixos/syndicate-server.nix b/nixos/syndicate-server.nix index 5bc89e7..54498f9 100644 --- a/nixos/syndicate-server.nix +++ b/nixos/syndicate-server.nix @@ -14,7 +14,7 @@ with lib; description = '' Syndicate dataspace server instances. If the key is in the form of "tty''${N}" it will - be attached to the appropriate teletypwriter. + be attached to the appropriate teletypewriter. ''; type = types.attrsOf (types.submodule { options = { @@ -92,6 +92,11 @@ with lib; }) (lib.attrsets.filterAttrs (_: cfg: cfg.enable) config.services.syndicate); + systemd.targets.multi-user.wants = lib.lists.flatten + (lib.attrsets.mapAttrsToList + (name: cfg: lib.optional cfg.enable "syndicate-${name}.service") + config.services.syndicate); + }; }