From cbd09dc9b7ef4f373067ad50fe49bc5be63e4cb7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=B6rg=20Thalheim?= Date: Sat, 27 Jun 2020 19:46:28 +0100 Subject: [PATCH] travis: fix cachix support fixes #21 --- .travis.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.travis.yml b/.travis.yml index 8b3c939..8d01732 100644 --- a/.travis.yml +++ b/.travis.yml @@ -29,6 +29,9 @@ matrix: install: - nix --version + # for cachix we need travis to be a trusted nix user + - echo "trusted-users = $USER" | sudo tee -a /etc/nix/nix.conf + - sudo systemctl restart nix-daemon - if [ -n "${CACHIX_CACHE}" ]; then travis_retry nix-channel --update; fi - if [ -n "${CACHIX_CACHE}" ]; then nix-env -iA cachix -f https://cachix.org/api/v1/install; fi - if [ -n "${CACHIX_CACHE}" ]; then cachix use "${CACHIX_CACHE}"; fi