This is an automated archive made by the Lemmit Bot.

The original was posted on /r/nixos by /u/raunakchhatwal001 on 2024-11-18 14:54:02+00:00.


fhsenv is a Rust dev-tool that installs Nix packages into an FHS-compliant virtual shell. The original implementation of the FHS environment uses bubblewrap, an application sandboxing utility to awkwardly achieve this goal. However, our aim isn’t to enter a sandbox, but rather to rearrange the filesystem view to comply with the Filesystem Hierarchy Standard (FHS).

fhsenv uses only the mount namespace, whereas bubblewrap uses multiple. This approach results in fewer compatibility issues, the most significant being that sudo works within.

GitHub: