Skip to content

Does not work inside of WSL2 #46

@mspaulding06

Description

@mspaulding06

I am having trouble getting this program to work inside of WSL2. Of note is that I am running from the unstable channel. I have run the following commands.

mkdir -m 0755 ~/.nix
nix run --store ~/.nix nixpkgs.bash nixpkgs.coreutils
nix-user-chroot ~/.nix bash

And doing that shows the following error.

failed to execute bash: No such file or directory (os error 2)

So then I try the chroot command with sudo and get a new error.

thread 'main' panicked at 'failed to bind mount /home/nixos/.nix to /nix: EACCES: Permission denied', src/main.rs:159:31
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace

Trying again with the backtrace environment variable yields no interesting results. I'm really stuck here and not sure where to go from this point. Any help on the matter would be greatly appreciated.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions