Skip to content

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

@meicale

Description

@meicale

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!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions