Tested on Debian Stretch so far
This is 90% pirated from https://gist.github.com/joepie91/043a51a7b70be5f50f1d but I made it a whole lot more sustainable / less invasive
I think I recorded all the steps in about the right order but ya never know
First, you'll need to install, at the very minimum curl
and ca-certificates
(I think you can remove them later if you want).
mkdir -v /nix