From e00d4c692a1d08723aa95906d5790ee1b5efd0a6 Mon Sep 17 00:00:00 2001 From: Wolfgang Thaller Date: Tue, 18 Jan 2022 09:30:03 +0100 Subject: [PATCH] try NIX_EXTRA_CONF --- azure-pipelines.yml | 17 +++++------------ 1 file changed, 5 insertions(+), 12 deletions(-) diff --git a/azure-pipelines.yml b/azure-pipelines.yml index 4dfab4d8b4..822927356b 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -139,22 +139,15 @@ jobs: vmImage: 'macOS-11' steps: - script: | + NIX_EXTRA_CONF="trusted-users = root runner" sh <(curl -L https://nixos.org/nix/install) + echo ============ + cat /etc/nix/nix.conf + echo ============ displayName: Install nix - script: | . /nix/var/nix/profiles/default/etc/profile.d/nix-daemon.sh - echo "trusted-users = root runner" | sudo tee -a /etc/nix/nix.conf - echo "nix: `pgrep nix-daemon`" - sudo launchctl status org.nixos.nix-daemon - sudo launchctl stop org.nixos.nix-daemon - echo "nix: `pgrep nix-daemon`" - sudo launchctl status org.nixos.nix-daemon - sudo launchctl start org.nixos.nix-daemon - echo "nix: `pgrep nix-daemon`" - sudo launchctl status org.nixos.nix-daemon - sleep 5 - echo "nix: `pgrep nix-daemon`" - sudo launchctl status org.nixos.nix-daemon + # echo "trusted-users = root runner" | sudo tee -a /etc/nix/nix.conf nix-env -iA cachix -f https://cachix.org/api/v1/install cachix use autc04