Install Dropbox using NixOS in your preferred way.

At the top of your i3wm configuration file add

exec dropbox &