Skip to content

docs(devshell): fix the bind examples - #63

Merged
Naxdy merged 1 commit into
Naxdy:mainfrom
NotAFlightRisk:docs/devshell-bind-examples
Sep 25, 2026
Merged

Naxdy merged 1 commit into
Naxdy:mainfrom
NotAFlightRisk:docs/devshell-bind-examples

Conversation

@NotAFlightRisk

Copy link
Copy Markdown
Contributor

The devshell preset adds the read-only binds to the bwrap command line after the read-write ones, so a path that's in both lists ends up read-only. The combined example on the preset page has $HOME/git/my-readwrite-project in both. Copy it, swap in your own paths, and the project you wanted writable isn't:

touch: cannot touch 'notes.txt': Read-only file system

That's from running bwrap by hand with the same flag order rather than a proper nix build, as I dont have nix on this machine.

The read-only entry is now my-readonly-project, so the example still has two paths in one list. The prose above it also said $HOME/my-projets straight after a cd ~/git/my-project, so I fixed that while I was there. It pushed the line past the files ~120 columns, hence the rewrap.

@Naxdy
Naxdy merged commit e017b7a into Naxdy:main Sep 25, 2026
1 check passed
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.

2 participants