darwin-rebuild: use NIX_REMOTE=daemon even as root

This commit is contained in:
Emily 2025-05-19 18:26:48 +01:00
parent b9b927dd1f
commit d23a9c26f3

View file

@ -11,6 +11,10 @@ fi
export PATH=@path@ export PATH=@path@
export NIX_PATH=${NIX_PATH:-@nixPath@} 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() { showSyntax() {
echo "darwin-rebuild [--help] {edit | switch | activate | build | check | changelog}" >&2 echo "darwin-rebuild [--help] {edit | switch | activate | build | check | changelog}" >&2
echo " [--list-generations] [{--profile-name | -p} name] [--rollback]" >&2 echo " [--list-generations] [{--profile-name | -p} name] [--rollback]" >&2