For context, this is all a fresh install on MacOS.
I was tinkering with nix and did the following:
sh <(curl https://nixos.org/nix/install) # fresh install
nix-env --switch-generation 1
nix-collect-garbage -d # this just made my problem permanent 🤦♂
nix-env -i hello
And got an error like:
unable to download 'https://cache.nixos.org/nar/1akh3jas3ydbcm9q8xh6d44ydrd3i2g4nargnxl8gybl7blch4k8.nar.xz': Problem with the SSL CA cert (path? access rights?) (77)
After some looking around it seems like generation 1 doesn't have the cacert installed, so if you switch back to it then you can't download any packages from the cache.
Additionally, if you decide to try out collecting garbage after you've done that then all you can do is freshly install nix 🤦♂.
For context, this is all a fresh install on MacOS.
I was tinkering with nix and did the following:
And got an error like:
After some looking around it seems like generation 1 doesn't have the cacert installed, so if you switch back to it then you can't download any packages from the cache.
Additionally, if you decide to try out collecting garbage after you've done that then all you can do is freshly install nix 🤦♂.