Nixos-generate -f raw, directly to device

If I create a ready system, with user accounts and all, how is it possible to write this directly to a device?

If I write to an image, I would have to dd it onto the device afterwards, but this would also mean I would need to resize the root filesystem after boot to the full size of the SSD?