This is exactly how I can rapidly prototype things. Once proficient with this tooling is becomes very easy to quickly spin up services and PoCs. Managing it and iterating is also a breeze.
Now add devenv/devshell to your flake and it will become an all-in-one, self-contained, dependency-stable powerhouse.