Start service using nix-shell

I’d like to automate starting the following service.

nix-shell
screen -S "name" cargo run --release

I already did something very similar with systemd, but it wasn’t required to enter nix-shell. I’m willing to get rid of the shell.nix file and put the packages inside the config.