How to associate the current Node ID when running from Block layout?
This feature is already present in form of the contextual filters in views (not limited to D8). To do this:


Add a contextual filter in your view block of "Content: nid"
In "when filter not present" select "provide default value".
Select "Content id from the URL".


And this block will automatically take in the nid from the URL.