You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
buildFHSEnv mounts /nix/store read-only and prevents FHS-installers from running. #239017
0.kind: bugSomething is broken2.status: stalehttps://github.com/NixOS/nixpkgs/blob/master/.github/STALE-BOT.md
buildFHSEnv mounts /nix/store read-only, so we can't use an FHS environment inside a derivation to produce an output inside /nix/store. This is the case, for instance, when running a proprietary installer that requires an FHS environment. buildFHSEnvChroot still works though.
This also makes it so if you want to have a persistent partition in /nix/persist for impermanence any programs that use this FHS function will not work properly (e.g.: Steam errors out due to RO filesystem)
0.kind: bugSomething is broken2.status: stalehttps://github.com/NixOS/nixpkgs/blob/master/.github/STALE-BOT.md
Activity
Atemu commentedon Jun 21, 2023
You should be able to bind-mount the outputs as rw via extraBwrapArgs.
I guess we could also just mount the Nix store rw as it should be ro at a lower level anyways.
tulilirockz commentedon Aug 18, 2024
This also makes it so if you want to have a persistent partition in
/nix/persistfor impermanence any programs that use this FHS function will not work properly (e.g.: Steam errors out due to RO filesystem)buildFHSEnv: bind /nix as read-write