trust the right user for cache setup

This commit is contained in:
Wolfgang Thaller 2023-12-26 23:37:56 +01:00
parent d88e9aba55
commit 3193ad031c
1 changed files with 4 additions and 2 deletions

View File

@ -96,7 +96,8 @@ jobs:
vmImage: 'ubuntu-22.04'
steps:
- script: |
curl --proto '=https' --tlsv1.2 -sSf -L https://install.determinate.systems/nix | sh -s -- install --no-confirm
curl --proto '=https' --tlsv1.2 -sSf -L https://install.determinate.systems/nix \
| sh -s -- install --no-confirm --extra-conf "trusted-users = root vsts"
displayName: Install Nix
- script: |
. /nix/var/nix/profiles/default/etc/profile.d/nix-daemon.sh
@ -135,7 +136,8 @@ jobs:
vmImage: 'macOS-11'
steps:
- script: |
curl --proto '=https' --tlsv1.2 -sSf -L https://install.determinate.systems/nix | sh -s -- install --no-confirm
curl --proto '=https' --tlsv1.2 -sSf -L https://install.determinate.systems/nix \
| sh -s -- install --no-confirm --extra-conf "trusted-users = root runner"
displayName: Install Nix
- script: |
. /nix/var/nix/profiles/default/etc/profile.d/nix-daemon.sh