nix-installer
nix-installer copied to clipboard
<autogenerated-issue> Installing nix on WSL1
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
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".