HomePhabricator
Diffusion Comm aabddfbd522c

[Nix] Warn user of writes to /etc/nix/nix.conf

Description

[Nix] Warn user of writes to /etc/nix/nix.conf

Summary:
If a user already has nix installed, it's a bit
jarring to being prompted immediately for sudo access.

Indicate to the user what's going on to make experience
less frightening.

https://linear.app/comm/issue/ENG-1668

Test Plan:

sudo vim /etc/nix/nix.conf
# remove line with cores, max-jobs, or trusted-users

./scripts/install_nix.sh
# get prompted with message with missing value
# enter password

# assert value is now appended to /etc/nix/nix.conf
cat /etc/nix/nix.conf

Reviewers: abosh, atul, varun

Reviewed By: abosh

Subscribers: ashoat, tomek

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

Details

Provenance
jonAuthored on Aug 18 2022, 5:00 PM
Reviewer
abosh
Differential Revision
D4882: [Nix] Warn user of writes to /etc/nix/nix.conf
Parents
rCOMMd0abaae7b16d: [Nix] Only prompt Powerline when an interactive shell
Branches
Unknown
Tags
Unknown