!apXxbtexmNGJaAryzM:nixos.org

NixOS on WSL

299 Members
https://github.com/nix-community/NixOS-WSL54 Servers

Load older messages


SenderMessageTime
30 Nov 2024
@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.orgsuswombat joined the room.19:41:24
@suswombat92:matrix.orgsuswombatHello19:41:32
@suswombat92:matrix.orgsuswombatSo 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.orgsuswombatis 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.orgsuswombatoh ok19:47:25
@suswombat92:matrix.orgsuswombatso id need to find a nice client for matrix i guess19:47:45
@suswombat92:matrix.orgsuswombat @K900 Thank you for clarifying 19:48:58
@suswombat92:matrix.orgsuswombatSo 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
@suswombat92:matrix.orgsuswombat* So 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 for nixos users or can i use it as a new "nixos" user aswell?19:51:49
@k900:0upti.meK900You can19:53:08
@k900:0upti.meK900But you'll probably be missing out on some of the advantages of NixOS, like declaratively configuring system services, because WSL doesn't really have any19:53:53
@suswombat92:matrix.orgsuswombatok. Im mostly intrested in the declarative package config and stuff (home manager)20:05:50
3 Dec 2024
@declension:matrix.org@declension:matrix.org left the room.12:00:48
7 Dec 2024
@k900:0upti.meK900 @nzbr (they/it) left a few more nitpicks on the two Rust PRs 07:02:28
@k900:0upti.meK900I can take over if you prefer07:02:38
@nzbr:nzbr.denzbr (they/it)I'll take a look at it later today14:41:00
@fallenbagel:matrix.orgfallenbagel changed their display name from Fallenbagel to ފޯލަން ޓިމް.17:19:08
@fallenbagel:matrix.orgfallenbagel changed their display name from ފޯލަން ޓިމް to Fallenbagel.17:19:35
@fallenbagel:matrix.orgfallenbagel changed their display name from Fallenbagel to fallenbagel.17:20:51

Show newer messages


Back to Room ListRoom Version: 9