mirror of
https://github.com/LnL7/nix-darwin.git
synced 2025-03-05 16:27:03 +00:00
nix: allways set NIX_REMOTE=daemon when the db isn't writable
This commit is contained in:
parent
8bf46112d8
commit
9792b08fdf
1 changed files with 1 additions and 1 deletions
|
@ -356,7 +356,7 @@ in
|
|||
NIX_CURRENT_LOAD = "/run/nix/current-load";
|
||||
};
|
||||
|
||||
environment.extraInit = mkIf cfg.useDaemon ''
|
||||
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
|
||||
|
|
Loading…
Add table
Reference in a new issue