You need a corectly configured and running Garage instance. Check the doc, in Peertube's section, to see how.
Then run
nix-shell
Then you will probably want to execute commands one by one, so:
cat shell.nix
And execute c