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:
parent
d8380cdd80
commit
53517162da
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
'';
|
||||
|
|
Loading…
Add table
Reference in a new issue