HomePhabricator
Diffusion Comm 1bfdcfda507b

[Nix] Configure nix before attempting Powerline install

Description

[Nix] Configure nix before attempting Powerline install

Summary:
The nix build and nix eval commands need
the experimental features enabled in the nix.conf before these can succeed.

Originally just ordered the events by my task order, but the ordering needs to
configure nix first on a true new nix install.

Depends on D4816

Test Plan:
From a machine which doesn't have nix on it:

./scripts/install_nix.sh
# validate nix and flakes are enabled
nix run nixpkgs#cowsay -- it works!

Or from a existing mac machine with nix on it:

# Revert nix.conf to its original install state
echo "build-users-group = nixbld" | sudo tee /etc/nix/nix.conf > /dev/null

# Run script
./scripts/install_nix.sh

# Check contents have changed
cat /etc/nix/nix.conf

Reviewers: abosh, ashoat, varun

Reviewed By: abosh

Subscribers: tomek, atul

Differential Revision: https://phab.comm.dev/D4862

Details

Provenance
jonAuthored on Aug 17 2022, 7:05 AM
Reviewer
abosh
Differential Revision
D4862: [Nix] Configure nix before attempting Powerline install
Parents
rCOMM0299679da81e: [native] helper to handle unexpected response
Branches
Unknown
Tags
Unknown