Skip to content

nix: Add a passthrough non-overlayFS derivation to buildFHSEnvOverlay#188

Open
hcallahan-lowrisc wants to merge 1 commit into
lowRISC:mainfrom
hcallahan-lowrisc:overlay-fhsenv-hermetic-passthru
Open

nix: Add a passthrough non-overlayFS derivation to buildFHSEnvOverlay#188
hcallahan-lowrisc wants to merge 1 commit into
lowRISC:mainfrom
hcallahan-lowrisc:overlay-fhsenv-hermetic-passthru

Conversation

@hcallahan-lowrisc

@hcallahan-lowrisc hcallahan-lowrisc commented Jun 17, 2026

Copy link
Copy Markdown
Contributor

This adds an attribute to the output set <name>.hermetic which constructs a near-identical FHSEnv except using the upstream nixpkgs implementation of buildFHSEnv directly.

This is intended as a debugging tool for assessing if the overlayFS-based environment builder is still required, and to comparatively debug some runtime failures which I suspect are down to leakage of the host system environment (when running Nix on e.g. Ubuntu) into the shell. The original intent of the overlayFS based shell was to improve the developer experience on non-NixOS systems by allowing more of the user's base system to propogate into the devShell for convenience. If this is a source of breakage that does not have other workarounds, or is a repeat offender for new breakage, I want to assess going forward if it is truly needed.

Related to #168

This adds an attribute to the output set <name>.hermetic which constructs a
near-identical FHSEnv except using the upstream nixpkgs implementation of
buildFHSEnv directly.

This is intended as a debugging tool for assessing if the overlayFS-based
environment builder is still required, and to comparatively debug some runtime
failures which I suspect are down to leakage of the host system
environment (when running Nix on e.g. Ubuntu) into the shell.
The original intent of the overlayFS based shell was to improve the developer
experience on non-NixOS systems by allowing more of the user's base system to
propogate into the devShell for convenience. If this is a source of breakage
that does not have other workarounds, or is a repeat offender for new breakage,
I want to assess going forward if it is truly needed.

Signed-off-by: Harry Callahan <hcallahan@lowrisc.org>
@hcallahan-lowrisc hcallahan-lowrisc force-pushed the overlay-fhsenv-hermetic-passthru branch from 589ee16 to f38552b Compare June 17, 2026 13:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant