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

<autogenerated-issue> Installing nix on WSL1 #1320

Open
stuv opened this issue Nov 27, 2024 · 1 comment
Open

<autogenerated-issue> Installing nix on WSL1 #1320

stuv opened this issue Nov 27, 2024 · 1 comment

Comments

@stuv
Copy link

stuv commented Nov 27, 2024

Error

Error: 
   0: Install failure
   1: Error executing action
   2: Action `configure_nix` errored
   3: Action `setup_default_profile` errored
   4: Failed to execute command with status 1 `HOME="/root" NIX_SSL_CERT_FILE="/nix/store/852a51xd3m7jyzifqimxc3jf3w2ipc4k-nss-cacert-3.101/etc/ssl/certs/ca-bundle.crt" "/nix/store/hdy82qidsybc3fg561pqfwagv44vschb-nix-2.24.10/bin/nix-env" "--option" "substitute" "false" "-i" "/nix/store/hdy82qidsybc3fg561pqfwagv44vschb-nix-2.24.10"`, stdout: 
      stderr: installing 'nix-2.24.10'
      error:
             … while setting up the build environment

             error: unable to load seccomp BPF program: Invalid argument


Metadata

key value
version 0.30.0
os linux
arch x86_64

According to the wiki nix could be installed on WSL1.

See: https://nixos.wiki/wiki/Nix_Installation_Guide#WSL1_.28pre-Windows_10_2004_build_19041.29

@cole-h
Copy link
Member

cole-h commented Dec 2, 2024

While it is possible that the upstream scripts may be able to install Nix on WSL1, unfortunately, we don't explicitly support that in our nix-installer. You may be able to get it working by running with --init none and one (or both) of --extra-conf "sandbox = false" and --extra-conf "filter-syscalls = false".

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

2 participants