Assign a hotkey

I use latest unstable and i3 and a frequent user of the flameshot application. I also have a 4k monitor so activating flameshot with a click in the top right corner can be a little cumbersome.
I’d like to assign a key combination to make it easier to activate flameshot.
Does anybody know how this is done in nixos?

With pure NixOS you’ll have to create an i3 config file, see NixOS Search.

With home-manager you can have a more structured configuration, see Appendix A. Home Manager Configuration Options.

In both cases you need to use bindsym with exec as seen here: i3: i3 User’s Guide

thanks @hexa I just found that with more digging as well
set up and working
"${mod}+z" = "exec ${pkgs.flameshot}/bin/flameshot gui";