mirror of
https://github.com/ryan4yin/nix-config.git
synced 2026-11-20 06:31:27 +01:00
The abort needs havePrivateMountNs == false AND /nix/store still ro: remountReadOnlyWritable() returns early while the store is writable. Nix <= 2.34 left it rw until reboot; 2.35 remounts in a private namespace, so only a freshly booted host hits it. The repro command also uses an open-only exec 7<..., since cat fails on the read even when the open succeeds. While here, trim the comments and drop the disabled default_deny/nix policies plus the explicit killUnconfinedConfinables=false (nixpkgs default). 82 -> 34 lines.