nix-channel --update
warning: unable to download 'https://nixos.org/channels/nixpkgs-unstable': Problem with the SSL CA cert (path? access rights?) (77); using cached result
error: unable to download '/nixexprs.tar.bz2': URL using bad/illegal format or missing URL (3)
nix
profile does not include correct ssl cert
This is my workaround. There should be a better way to fix it however my google skill is foo on this
cd "/nix/var/nix/profiles/per-user/$USER"
find -L . -name "ssl"
If your previous profile does include ssl, it will be under
./profile-{profile-number}-link/etc/ssl
In my case it is profile-6-link/etc/ssl
. Get the symlink target of that directory ($SSL_DIRECTORY
)
cd `$YOUR_CURRENT_NIX_PROFILE`/etc
ln -sfn $SSL_DIRECTORY ssl
You should be able to use nix-channle --update
now