Hi!
I have now tried for a while to set up the ARTIQ nix build system on my Ubuntu 20.04.6 LTS machine (I want to modify ARTIQ so I do need to build everything). I installed nix 2.13.3 and I am using custom SSL certificates, should that be important.
I am following the steps given in the "Develop ARTIQ" section of the documentation. The problem I did not manage to sort out myself is when I try to activate the development shell which uses the flake.nix file in the ARTIQ repository (cloned branch release-7 into a local repo, cd'd there and invoking nix develop
). I removed download retries that yielded the same result.
$ nix develop -v
Using saved setting for 'extra-sandbox-paths = /opt' from ~/.local/share/nix/trusted-settings.json.
Using saved setting for 'extra-substituters = https://nixbld.m-labs.hk' from ~/.local/share/nix/trusted-settings.json.
Using saved setting for 'extra-trusted-public-keys = nixbld.m-labs.hk-1:5aSRVA5b320xbNvu30tqxVPXpld73bhtOeH6uAjRyHc=' from ~/.local/share/nix/trusted-settings.json.
warning: error: unable to download 'https://nixbld.m-labs.hk/gpd2hhhn8b4qh534i0vxm3gkd91x4a9g.narinfo': SSL peer certificate or SSH remote key was not OK (60); retrying in 277 ms
[...]
error: unable to download 'https://nixbld.m-labs.hk/gpd2hhhn8b4qh534i0vxm3gkd91x4a9g.narinfo': SSL peer certificate or SSH remote key was not OK (60)
(use '--show-trace' to show detailed location information)
The problem seems to occur when querying channel-rust-nightly.toml
from https://nixbld.m-labs.hk
. I do have the public keys set up for https://nixbld.m-labs.hk
, I am not sure why this fails. It must be something connected to the certificates though, as nix-channel --update
also fails.
nix-channel --update
warning: error: unable to download 'https://nixbld.m-labs.hk/channel/custom/artiq/full/artiq-full': SSL peer certificate or SSH remote key was not OK (60); retrying in 347 ms
[...]
I do have the trusted key and substituters set up I think. Different tutorials and GitHub issues suggest different things, I ended up trying all locations I know, nothing worked. The keys to M-labs should also be set up in flake.nix anyway..
$ cat /etc/nix/nix.conf
substituters = https://cache.nixos.org https://nixbld.m-labs.hk
trusted-public-keys = cache.nixos.org-1:6NCHdD59X431o0gWypbMrAURkbJ16ZPMQFGspcDShjY= nixbld.m-labs.hk-1:5aSRVA5b320xbNvu30tqxVPXpld73bhtOeH6uAjRyHc=
$ cat ~/.config/nix/nix.conf
experimental-features = nix-command flakes
substituters = https://cache.nixos.org https://nixbld.m-labs.hk
trusted-public-keys = cache.nixos.org-1:6NCHdD59X431o0gWypbMrAURkbJ16ZPMQFGspcDShjY= nixbld.m-labs.hk-1:5aSRVA5b320xbNvu30tqxVPXpld73bhtOeH6uAjRyHc=
Any ideas? Sorry should this be blatantly obvious - I am not familiar with nix and find its setup (at least behind a corporate firewall) very confusing 😃
Thanks!