1
0
Fork 0
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:
Daiderd Jordan 2018-01-03 23:04:43 +01:00
parent 8bf46112d8
commit 9792b08fdf
No known key found for this signature in database
GPG key ID: D02435D05B810C96

View file

@ -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