mirror of
https://github.com/nix-community/nix-on-droid.git
synced 2025-12-18 06:51:13 +01:00
Fix Cachix in Travis with trusted-users = travis
This commit is contained in:
parent
498091c3dc
commit
b6514583c0
1 changed files with 3 additions and 3 deletions
|
|
@ -6,10 +6,10 @@ env:
|
||||||
global:
|
global:
|
||||||
- CACHIX_CACHE=nix-on-droid
|
- CACHIX_CACHE=nix-on-droid
|
||||||
|
|
||||||
before_install:
|
|
||||||
- nix upgrade-nix
|
|
||||||
|
|
||||||
install:
|
install:
|
||||||
|
# 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
|
||||||
- nix-env -iA cachix -f https://cachix.org/api/v1/install
|
- nix-env -iA cachix -f https://cachix.org/api/v1/install
|
||||||
- cachix use "${CACHIX_CACHE}"
|
- cachix use "${CACHIX_CACHE}"
|
||||||
- cachix push "${CACHIX_CACHE}" -w &
|
- cachix push "${CACHIX_CACHE}" -w &
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue