!apXxbtexmNGJaAryzM:nixos.org

NixOS on WSL

339 Members
https://github.com/nix-community/NixOS-WSL58 Servers

Load older messages


SenderMessageTime
29 Nov 2024
@shafael170:matrix.org@shafael170:matrix.org changed their display name from Shafa'el Zaitsev to Shafa'el Zmeyev.07:58:08
@shafael170:matrix.org@shafael170:matrix.org changed their profile picture.07:58:35
@achernoff:matrix.orgachernoff joined the room.22:17:58
@hlgs:matrix.org@hlgs:matrix.org left the room.23:43:56
30 Nov 2024
@mwoodpatrickmx:matrix.orgmwoodpatrickmx

I have these channels installed:

sudo nix-channel --list
home-manager https://github.com/nix-community/home-manager/archive/master.tar.gz
nixos https://channels.nixos.org/nixos-24.05
nixos-wsl https://github.com/nix-community/NixOS-WSL/archive/refs/heads/main.tar.gz

When running:

sudo nix-env -qaP hello

I'm getting:

trace: warning: cudaPackages.autoAddDriverRunpath is deprecated, use pkgs.autoAddDriverRunpath instead
trace: warning: cudaPackages.autoAddOpenGLRunpathHook is deprecated, use pkgs.autoAddDriverRunpathHook instead
trace: warning: cudaPackages.autoFixElfFiles is deprecated, use pkgs.autoFixElfFiles instead
trace: warning: cudaPackages.autoAddDriverRunpath is deprecated, use pkgs.autoAddDriverRunpath instead
trace: warning: cudaPackages.autoAddOpenGLRunpathHook is deprecated, use pkgs.autoAddDriverRunpathHook instead
trace: warning: cudaPackages.autoFixElfFiles is deprecated, use pkgs.autoFixElfFiles instead
trace: warning: cudaPackages.autoAddDriverRunpath is deprecated, use pkgs.autoAddDriverRunpath instead
trace: warning: cudaPackages.autoAddOpenGLRunpathHook is deprecated, use pkgs.autoAddDriverRunpathHook instead
trace: warning: cudaPackages.autoFixElfFiles is deprecated, use pkgs.autoFixElfFiles instead
trace: warning: eww now can build for X11 and wayland simultaneously, so eww-wayland is deprecated, use the normal eww package instead.
trace: warning: lxd has been renamed to lxd-lts
trace: warning: lxd-unwrapped has been renamed to lxd-unwrapped-lts
trace: warning: nixfmt was renamed to nixfmt-classic. The nixfmt attribute may be used for the new RFC 166-style formatter in the future, which is currently available as nixfmt-rfc-style
trace: warning: nvtop has been renamed to nvtopPackages.full
trace: warning: nvtop-amd has been renamed to nvtopPackages.amd
trace: warning: nvtop-intel has been renamed to nvtopPackages.intel
trace: warning: nvtop-msm has been renamed to nvtopPackages.msm
trace: warning: nvtop-nvidia has been renamed to nvtopPackages.nvidia
trace: warning: 'rapidjson-unstable' has been renamed to 'rapidjson'
trace: warning: writeReferencesToFile is deprecated in favour of writeClosure
error:
… while calling the 'import' builtin

     at «none»:0: (source not available)

   … while evaluating the file '/nix/store/cp3hsjlm5gqfvyw4nn5y6ir3hhcvpj9z-nixos-wsl/nixos-wsl/default.nix':

   … while evaluating the attribute 'defaultNix'

     at /nix/store/8kpx53qi52yhjai1vdw8zpa95iqa61bv-source/default.nix:229:5:

      228|   rec {
      229|     defaultNix =
         |     ^
      230|       (builtins.removeAttrs result ["__functor"])

   (stack trace truncated; use '--show-trace' to show the full trace)

   error: path '/nix/store/l2sfdsab1fh107f5r8za7pnv9a2xxnlg-nixos-wsl' is not valid

Anyone know why I'm getting the error (and warnings) and how to fix?

My WSL versions are:

wsl --version
WSL version: 2.4.4.0
Kernel version: 5.15.167.4-1
WSLg version: 1.0.65
MSRDC version: 1.2.5620
Direct3D version: 1.611.1-81528511
DXCore version: 10.0.26100.1-240331-1435.ge-release
Windows version: 10.0.26120.2415

18:25:10
@k900:0upti.meK900That's store corruption probably18:32:08
@k900:0upti.meK900 nix-store --verify --repair 18:32:13
@mwoodpatrickmx:matrix.orgmwoodpatrickmx
In reply to @k900:0upti.me
nix-store --verify --repair

I ran this does not show anything:

sudo nix-store --verify --repair
reading the Nix store...
checking path existence...

18:33:21
@k900:0upti.meK900 Try also --check-contents 18:33:31
@mwoodpatrickmx:matrix.orgmwoodpatrickmxThat completed normally as well: sudo nix-store --verify --repair --check-contents reading the Nix store... checking path existence... checking link hashes... checking store hashes...19:38:16
@nzbr:nzbr.denzbr (they/it) Maybe try nix-channel --update. That might at least fix it by replacing the missing one with a new derivation 19:44:17
@mwoodpatrickmx:matrix.orgmwoodpatrickmx
In reply to @nzbr:nzbr.de
Maybe try nix-channel --update. That might at least fix it by replacing the missing one with a new derivation
Did not help
19:46:04
1 Dec 2024
@shawn8901:matrix.org@shawn8901:matrix.org left the room.00:08:05
@mwoodpatrickmx:matrix.orgmwoodpatrickmx
In reply to @mwoodpatrickmx:matrix.org
Did not help

I just updated to 24.11 and I'm still seeing this error:

error:
… while evaluating the attribute 'nixos-wsl'

   … while calling the 'import' builtin

   … while evaluating the file '/nix/store/cp3hsjlm5gqfvyw4nn5y6ir3hhcvpj9z-nixos-wsl/nixos-wsl/default.nix':

   … while evaluating the attribute 'defaultNix'
     at /nix/store/8kpx53qi52yhjai1vdw8zpa95iqa61bv-source/default.nix:229:5:
      228|   rec {
      229|     defaultNix =
         |     ^
      230|       (builtins.removeAttrs result ["__functor"])

   (stack trace truncated; use '--show-trace' to show the full, detailed trace)

   error: path '/nix/store/l2sfdsab1fh107f5r8za7pnv9a2xxnlg-nixos-wsl' is not valid

Running with:

nix-env --show-trace -qaP hello

I get:

   … while evaluating the attribute 'nixos-wsl'

   … while calling the 'import' builtin

   … while evaluating the file '/nix/store/cp3hsjlm5gqfvyw4nn5y6ir3hhcvpj9z-nixos-wsl/nixos-wsl/default.nix':

   … while evaluating the attribute 'defaultNix'
     at /nix/store/8kpx53qi52yhjai1vdw8zpa95iqa61bv-source/default.nix:229:5:
      228|   rec {
      229|     defaultNix =
         |     ^
      230|       (builtins.removeAttrs result ["__functor"])

   … in the left operand of the update (//) operator
     at /nix/store/8kpx53qi52yhjai1vdw8zpa95iqa61bv-source/default.nix:231:7:
      230|       (builtins.removeAttrs result ["__functor"])
      231|       // (if result ? defaultPackage.${system} then { default = result.defaultPackage.${system}; } else {})
         |       ^
      232|       // (if result ? packages.${system}.default then { default = result.packages.${system}.default; } else {});

   … while calling the 'removeAttrs' builtin
     at /nix/store/8kpx53qi52yhjai1vdw8zpa95iqa61bv-source/default.nix:230:8:
      229|     defaultNix =
      230|       (builtins.removeAttrs result ["__functor"])
         |        ^
      231|       // (if result ? defaultPackage.${system} then { default = result.defaultPackage.${system}; } else {})

   … from call site
     at /nix/store/8kpx53qi52yhjai1vdw8zpa95iqa61bv-source/default.nix:224:10:
      223|     else if lockFile.version >= 5 && lockFile.version <= 7
      224|     then allNodes.${lockFile.root}
         |          ^
      225|     else throw "lock file '${lockFilePath}' has unsupported version ${toString lockFile.version}";

   … while calling anonymous lambda
     at /nix/store/8kpx53qi52yhjai1vdw8zpa95iqa61bv-source/default.nix:156:13:
      155|     builtins.mapAttrs
      156|       (key: node:
         |             ^
      157|         let

   … in the condition of the assert statement
     at /nix/store/8kpx53qi52yhjai1vdw8zpa95iqa61bv-source/default.nix:211:13:
      210|           if node.flake or true then
      211|             assert builtins.isFunction flake.outputs;
         |             ^
      212|             result

   … while calling the 'isFunction' builtin
     at /nix/store/8kpx53qi52yhjai1vdw8zpa95iqa61bv-source/default.nix:211:20:
      210|           if node.flake or true then
      211|             assert builtins.isFunction flake.outputs;
         |                    ^
      212|             result

   … while calling the 'import' builtin
     at /nix/store/8kpx53qi52yhjai1vdw8zpa95iqa61bv-source/default.nix:167:19:
      166|
      167|           flake = import (outPath + "/flake.nix");
         |                   ^
      168|

   … while realising the context of path '/nix/store/l2sfdsab1fh107f5r8za7pnv9a2xxnlg-nixos-wsl/flake.nix'

   error: path '/nix/store/l2sfdsab1fh107f5r8za7pnv9a2xxnlg-nixos-wsl' is not valid
13:44:16
@k900:0upti.meK900 Try nix-store -r /nix/store/l2sfdsab1fh107f5r8za7pnv9a2xxnlg-nixos-wsl 13:48:25
@mwoodpatrickmx:matrix.orgmwoodpatrickmx
In reply to @k900:0upti.me
Try nix-store -r /nix/store/l2sfdsab1fh107f5r8za7pnv9a2xxnlg-nixos-wsl

I got this error:

nix-store -r /nix/store/l2sfdsab1fh107f5r8za7pnv9a2xxnlg-nixos-wsl
don't know how to build these paths:
/nix/store/l2sfdsab1fh107f5r8za7pnv9a2xxnlg-nixos-wsl
error: build of '/nix/store/l2sfdsab1fh107f5r8za7pnv9a2xxnlg-nixos-wsl' failed

Are you able to reproduce my error?

23:39:55
2 Dec 2024
@k900:0upti.meK900No, I am not05:36:44
@suswombat92:matrix.org@suswombat92:matrix.org joined the room.19:41:24
@suswombat92:matrix.org@suswombat92:matrix.orgHello19:41:32
@suswombat92:matrix.org@suswombat92:matrix.orgSo this is like irc right?19:44:12
@k900:0upti.meK900Kind of19:45:39
@k900:0upti.meK900Better in some ways, worse in others19:45:46
@suswombat92:matrix.org@suswombat92:matrix.orgis there a nice client for both?19:46:23
@k900:0upti.meK900Matrix has a thing called bridges that lets you join IRC rooms as if they're Matrix rooms19:46:54
@k900:0upti.meK900And the bridge passes messages back and forth19:47:04
@k900:0upti.meK900Not all rooms are bridged, but many are, and you can run your own bridge if you want19:47:16
@suswombat92:matrix.org@suswombat92:matrix.orgoh ok19:47:25
@suswombat92:matrix.org@suswombat92:matrix.orgso id need to find a nice client for matrix i guess19:47:45
@suswombat92:matrix.org@suswombat92:matrix.org @K900 Thank you for clarifying 19:48:58
@suswombat92:matrix.org@suswombat92:matrix.orgSo i havent used nixos so far but i really like the idea of it and as i recently switched back to windows (from arch/ubuntu) id like to explore wsl. Is wsl-nixos only usefull or can i use it as a new "nixos" user aswell?19:51:37

Show newer messages


Back to Room ListRoom Version: 9