mirror of
https://github.com/autc04/Retro68.git
synced 2024-11-28 21:49:33 +00:00
try NIX_EXTRA_CONF
This commit is contained in:
parent
636e1a26ec
commit
e00d4c692a
@ -139,22 +139,15 @@ jobs:
|
|||||||
vmImage: 'macOS-11'
|
vmImage: 'macOS-11'
|
||||||
steps:
|
steps:
|
||||||
- script: |
|
- script: |
|
||||||
|
NIX_EXTRA_CONF="trusted-users = root runner"
|
||||||
sh <(curl -L https://nixos.org/nix/install)
|
sh <(curl -L https://nixos.org/nix/install)
|
||||||
|
echo ============
|
||||||
|
cat /etc/nix/nix.conf
|
||||||
|
echo ============
|
||||||
displayName: Install nix
|
displayName: Install nix
|
||||||
- script: |
|
- script: |
|
||||||
. /nix/var/nix/profiles/default/etc/profile.d/nix-daemon.sh
|
. /nix/var/nix/profiles/default/etc/profile.d/nix-daemon.sh
|
||||||
echo "trusted-users = root runner" | sudo tee -a /etc/nix/nix.conf
|
# 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
|
|
||||||
|
|
||||||
nix-env -iA cachix -f https://cachix.org/api/v1/install
|
nix-env -iA cachix -f https://cachix.org/api/v1/install
|
||||||
cachix use autc04
|
cachix use autc04
|
||||||
|
Loading…
Reference in New Issue
Block a user