NixOS wsl with proxy

Not really sure if wsl is in a way supported here, but trying anyway.
I have nixos wsl running on my work computer, but the work computer uses proxy.
I was wondering on how to get access to internet inside wsl2 and configure with proxy in nixos.