Not an issue - but I wanted to thank you for this excellent work!
I have been looking for something like his for awhile, so thank you for spending the time on it!
One issue - when running this on a machine that already has nix installed it removed the entire nix cache. Is there a way to detect if nix is already installed and preserve the nix cache?