{ pkgs, lib, config, nodes, ... }: with lib; { environment.etc."mpi/hosts" = { text = concatMapStringsSep "\n" (node: "${node.config.networking.hostName} max_slots=32") (filter (node: elem "node" node.config.deployment.tags) (attrValues nodes)); }; }