Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to combine this with devenv and nix-direnv and even docker? #22

Open
meicale opened this issue Feb 8, 2025 · 0 comments
Open

How to combine this with devenv and nix-direnv and even docker? #22

meicale opened this issue Feb 8, 2025 · 0 comments

Comments

@meicale
Copy link

meicale commented Feb 8, 2025

I just found this wonderful project, and thank you for your wonderful work.
I encounter problems when use this together with other tools. Thanks to anyone who may be interested and reply this in advance.

  1. docker
    I installed docker and mount the nixsa folder into the container, But I found out bubblewrap doesn't work properly. Any solutions?
    errers:
xxx@7863c6385913:~$ /nixsa/bin/nix
bwrap: No permissions to create new namespace, likely because the kernel does not allow non-privileged user namespaces. See <https://deb.li/bubblewrap> or <file:///usr/share/doc/bubblewrap/README.Debian.gz>.
xxx@7863c6385913:~$ ls -a -l /nixsa/bin/nix
lrwxrwxrwx 1 ubuntu ubuntu 5 Jan  1  1970 /nixsa/bin/nix -> nixsa
  1. devenv
    I follow the demo of devenv here https://devenv.sh/guides/using-with-flakes/#the-flakenix-file and I got errors too.
Running tasks     devenv:enterShell
Failed            devenv:enterShell 11ms
1 Failed                            11.37ms

--- devenv:enterShell failed with error: Task exited with status: exit status: 1
--- devenv:enterShell stdout:
--- devenv:enterShell stderr:
0000.00: chmod: changing permissions of '/mnt/z/nixsa/.devenv/load-exports': Operation not permitted
---

logs:

(nix:devenv-shell-env) (devenv) xxx@DESKTOP-M0LLBM9:/mnt/z/nixsa$ ls -a -l /mnt/z/nixsa/.devenv/load-exports
-rwxrwxrwx 1 nobody nogroup 1 Feb  8 17:46 /mnt/z/nixsa/.devenv/load-exports
  1. nix-direnv
    I haven't figure out how to make nix-direnv work yet!
    Maybe, are there any better way to deal with this sitiations? Thank you!
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

No branches or pull requests

1 participant