diff --git a/.circleci/config.yml b/.circleci/config.yml index 68888fa67e111d400c3ed2a24aab180b3714f31f..04bff7388a894ea5c74241b50eaaf2d84b22b4be 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -24,6 +24,17 @@ jobs: resource_class: "xlarge" + environment: + NIX_CONFIG: | + # Add privatestorage's and haskell.nix[1] nix caches for builds. [1] + # https://input-output-hk.github.io/haskell.nix/tutorials/getting-started/#setting-up-the-binary-cache + extra-substituters = http://saxtons.private.storage/ https://hydra.iohk.io + # We needed to explictly specify the key for cache.nixos.org until we + # are using a version of nix that has + # https://github.com/NixOS/nix/commit/ff4dea63c9403880500f82ce273713ecf793d2d9 + trusted-public-keys = cache.nixos.org-1:6NCHdD59X431o0gWypbMrAURkbJ16ZPMQFGspcDShjY= saxtons.private.storage:MplOcEH8G/6mRlhlKkbA8GdeFR3dhCFsSszrspE/ZwY= hydra.iohk.io:f/Ea+s+dFdN+3Y/G+FDgSq+a5NEWhJGzdjvKNGv0/EQ= + + steps: - run: name: "Setup Environment Variables" diff --git a/nix/nix.conf b/nix/nix.conf deleted file mode 100644 index 021bd60958ae4c441a26574778100c3864032963..0000000000000000000000000000000000000000 --- a/nix/nix.conf +++ /dev/null @@ -1,8 +0,0 @@ -# nix.conf for usage in CI. - -# Add privatestorage's and haskell.nix[1] nix caches for builds. -# [1] https://input-output-hk.github.io/haskell.nix/tutorials/getting-started/#setting-up-the-binary-cache -extra-substituters = http://saxtons.private.storage/ https://hydra.iohk.io/ -# We needed to explictly specify the key for cache.nixos.org until we are using a version of nix -# that has https://github.com/NixOS/nix/commit/ff4dea63c9403880500f82ce273713ecf793d2d9 -trusted-public-keys = cache.nixos.org-1:6NCHdD59X431o0gWypbMrAURkbJ16ZPMQFGspcDShjY= saxtons.private.storage:MplOcEH8G/6mRlhlKkbA8GdeFR3dhCFsSszrspE/ZwY= hydra.iohk.io:f/Ea+s+dFdN+3Y/G+FDgSq+a5NEWhJGzdjvKNGv0/EQ=