Replies: 7 comments 4 replies
-
Just deleted the old distro and reinstalled the latest official release from this repo, same issue. |
Beta Was this translation helpful? Give feedback.
-
Try doing nix flake update. Maybe you are on an old commit? I have almost the same code locally and it works for me. |
Beta Was this translation helpful? Give feedback.
-
What commands am I running to do that? Just so I don't f it up. Cheers! |
Beta Was this translation helpful? Give feedback.
-
I ran |
Beta Was this translation helpful? Give feedback.
-
I don't know. The code looks correct, not sure where you're error is. Maybe ask in Matrix. |
Beta Was this translation helpful? Give feedback.
-
Gonna keep trying, might have to manually add experimental features to the nix config. |
Beta Was this translation helpful? Give feedback.
-
In your inputs definition, you wrote nixos-wsl = {
url = "github:nix-community/nixos-wsl";
follows = "nixpkgs";
}; but it should be nixos-wsl = {
url = "github:nix-community/nixos-wsl";
inputs.nixpkgs.follows = "nixpkgs";
}; Just putting follows there means that the |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Bug description
Unable to use
nixos-wsl.nixosModules.wsl
as a module in a flake.To Reproduce
Steps to reproduce the behavior: Use this flake:
Logs
When running:
sudo nixos-rebuild switch --flake .#default --show-trace
:And when using
.default
:WSL version
Extra
I'm sure this is just a problem with how I am referencing the module but the documentation for using flakes it not the clearest. I used this starter release thing to get NixOS running in wsl, then stripped out all of the extra packages and options I do not need. I can provide the configuration.nix file if needed but I do not think it is relevant given this error occurs in the flake.nix file.
Beta Was this translation helpful? Give feedback.
All reactions