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); + }; }