1
0
Fork 0
mirror of https://github.com/LnL7/nix-darwin.git synced 2025-03-13 20:30:02 +00:00

nix: fix daemon check, only set if store is not writable

Fixes issues for a single-user install introduced in
9792b08fdf.
This commit is contained in:
Daiderd Jordan 2018-01-16 20:18:10 +01:00
parent d8380cdd80
commit 53517162da
No known key found for this signature in database
GPG key ID: D02435D05B810C96

View file

@ -367,7 +367,7 @@ in
environment.extraInit = ''
# Set up secure multi-user builds: non-root users build through the
# Nix daemon.
if [ "$USER" != root -o ! -w /nix/var/nix/db ]; then
if [ "$USER" != root -a ! -w /nix/var/nix/db ]; then
export NIX_REMOTE=daemon
fi
'';