In reply to @philiptaron:matrix.org I wasn't able to. I was unable to repro, but did notice that my configuration appears to have sandbox set to false:
nix-shell -p nix-info --run "nix-info -m" 0:21:25
- system: `"aarch64-darwin"`
- host os: `Darwin 23.6.0, macOS 14.6.1`
- multi-user?: `yes`
- sandbox: `no`
- version: `nix-env (Nix) 2.24.0pre20240709_142e566a`
- channels(root): `"nixpkgs"`
- nixpkgs: `/Users/ewannisbet/.nix-defexpr/channels/nixpkgs`
using nix build --option sandbox true github:nixos/nixpkgs/master#nixpkgs-manual also didn't report errors, but I'm not familiar enough to know if I should expect to be able to enable sandbox like that
|