From d23a9c26f37ce6600e452099ee86c916bf51ef87 Mon Sep 17 00:00:00 2001 From: Emily Date: Mon, 19 May 2025 18:26:48 +0100 Subject: [PATCH] darwin-rebuild: use `NIX_REMOTE=daemon` even as `root` --- pkgs/nix-tools/darwin-rebuild.sh | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/pkgs/nix-tools/darwin-rebuild.sh b/pkgs/nix-tools/darwin-rebuild.sh index 8824e61..6e2817a 100644 --- a/pkgs/nix-tools/darwin-rebuild.sh +++ b/pkgs/nix-tools/darwin-rebuild.sh @@ -11,6 +11,10 @@ fi export PATH=@path@ export NIX_PATH=${NIX_PATH:-@nixPath@} +# Use the daemon even as `root` so that resource limits, TLS and proxy +# configuration, etc. work as expected. +export NIX_REMOTE=${NIX_REMOTE:-daemon} + showSyntax() { echo "darwin-rebuild [--help] {edit | switch | activate | build | check | changelog}" >&2 echo " [--list-generations] [{--profile-name | -p} name] [--rollback]" >&2