NixOS on WSL | 339 Members | |
| https://github.com/nix-community/NixOS-WSL | 57 Servers |
| Sender | Message | Time |
|---|---|---|
| 12 Jun 2024 | ||
| vm without TPM | 20:12:46 | |
In reply to @k900:0upti.meit has the --set-default-version argument, though claims a kernel update is required | 20:13:02 | |
| If it's a VM, just get a clean latest Windows 10 image | 20:13:18 | |
| And install that | 20:13:19 | |
| looks like WSL2 might work after enabling VM platform | 20:14:27 | |
| guess we'll find out because i cba to deal with reinstalling/updating windows atm | 20:14:52 | |
| enabling vm platform broke the vm, uh oh | 20:15:10 | |
| yeah ill figure this out later ig | 20:17:32 | |
| it completely gets stuck at "Conversion in progress" | 20:17:50 | |
| 13 Jun 2024 | ||
| 08:53:06 | ||
| 15 Jun 2024 | ||
| 03:53:48 | ||
| good evening, been trying to setup NixOS-WSL for about 3 hours. When I run initial setup of "sudo nixos-rebuild switch" I get the following error "building '/nix/store/vz70pnvz94w0is3vrpkf6yg7kx2q8d9v-nixos-wsl-utils-1.0.0.drv'... Running phase: unpackPhase unpacking source archive /nix/store/mgs739bd2i6v7cjxilwk0qf9czfd8vg9-utils source root is utils Executing cargoSetupPostUnpackHook Finished cargoSetupPostUnpackHook Running phase: patchPhase Executing cargoSetupPostPatchHook Validating consistency between /build/utils/Cargo.lock and /build/cargo-vendor-dir/Cargo.lock Finished cargoSetupPostPatchHook Running phase: updateAutotoolsGnuConfigScriptsPhase Running phase: configurePhase Running phase: buildPhase Executing cargoBuildHook ++ env CC_X86_64_UNKNOWN_LINUX_GNU=/nix/store/shdkxxdlpv66wl33rh9d01zfypaka1dn-gcc-wrapper-12.3.0/bin/cc CXX_X86_64_UNKNOWN_LINUX_GNU=/nix/store/shdkxxdlpv66wl33rh9d01zfypaka1dn-gcc-wrapper-12.3.0/bin/c++ CARGO_TARGET_X86_64_UNKNOWN_LINUX_GNU_LINKER=/nix/store/shdkxxdlpv66wl33rh9d01zfypaka1dn-gcc-wrapper-12.3.0/bin/cc CC_X86_64_UNKNOWN_LINUX_GNU=/nix/store/shdkxxdlpv66wl33rh9d01zfypaka1dn-gcc-wrapper-12.3.0/bin/cc CXX_X86_64_UNKNOWN_LINUX_GNU=/nix/store/shdkxxdlpv66wl33rh9d01zfypaka1dn-gcc-wrapper-12.3.0/bin/c++ CARGO_TARGET_X86_64_UNKNOWN_LINUX_GNU_LINKER=/nix/store/shdkxxdlpv66wl33rh9d01zfypaka1dn-gcc-wrapper-12.3.0/bin/cc CARGO_BUILD_TARGET=x86_64-unknown-linux-gnu HOST_CC=/nix/store/shdkxxdlpv66wl33rh9d01zfypaka1dn-gcc-wrapper-12.3.0/bin/cc HOST_CXX=/nix/store/shdkxxdlpv66wl33rh9d01zfypaka1dn-gcc-wrapper-12.3.0/bin/c++ cargo build -j 16 --target x86_64-unknown-linux-gnu --frozen --profile release error: package clap_builder v4.5.2 cannot be built because it requires rustc 1.74 or newer, while the currently active rustc version is 1.73.0Either upgrade to rustc 1.74 or newer, or use cargo update -p clap_builder@4.5.2 --precise ver where ver is the latest version of clap_builder supporting rustc 1.73.0error: builder for '/nix/store/vz70pnvz94w0is3vrpkf6yg7kx2q8d9v-nixos-wsl-utils-1.0.0.drv' failed with exit code 101 error: 1 dependencies of derivation '/nix/store/igsm8s0h1sh02zzx4b60mx8phk7b0bl4-nixos-system-nixos-23.11.7609.5c2ec3a5c2ee.drv' failed to build" | 03:56:46 | |
| so, it keeps hanging on "nixos-wsl-utils-1.0.0.drv" when building. I'm not yet familiar enough with NixOS to identify how to resolve the dependency issue. I've successfully installed rustc v 1.79 globally as well as rustup v 1.26 and cargo v 1.79 | 04:00:03 | |
| is there a way to override nixos-wsl-utils-1.0.0.drv in order to resolve dependency or is this a bigger problem? | 04:00:48 | |
| thanks in advance. any help is appreciated. otherwise will move on to ubuntu+nix-shell tomorrow | 04:01:32 | |
| What NixOS base version are you using? | 05:52:33 | |
| 23.11? | 05:52:34 | |
In reply to @toddt:matrix.org As the error seems to be the same as this thread, I do believe you're on 23.11 and you should simply update to 24.05 to resolve the issue. Look at https://github.com/nix-community/NixOS-WSL/issues/483 for instructions in one of the comments | 07:07:11 | |
| Ok, will try and provide my feedback. Thanks for quick response | 08:04:40 | |
| Hi, I'm trying to follow (https://github.com/nix-community/NixOS-WSL) but I can't seem to find a 24.05 tar.gz file | 08:16:19 | |
| You shouldn't need one | 08:16:28 | |
| Just upgrade your system as normal | 08:16:33 | |
| You already have an installed system, correct? | 08:16:41 | |
| yes, but the upgrade doesn't work as the original "sudo nixos-rebuild switch" command always fails | 08:17:41 | |
| You need to change your channels | 08:18:03 | |
| Or your flake inputs if you're using a flake | 08:18:08 | |
| I tried both | 08:18:30 | |
| can you provide a quick example | 08:18:40 | |
| updating the channel still fails the rebuild | 08:19:07 | |
| Do you have a system right now? | 08:19:51 | |