errors during install on wsl2 nixos #32
Labels
No labels
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
question
wontfix
Compat
Breaking
Kind/Bug
Kind/Documentation
Kind/Enhancement
Kind/Feature
Kind/Security
Kind/Testing
Priority
Critical
Priority
High
Priority
Low
Priority
Medium
Reviewed
Confirmed
Reviewed
Duplicate
Reviewed
Invalid
Reviewed
Won't Fix
Status
Abandoned
Status
Blocked
Status
Need More Info
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: auxolotl/templates#32
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
I understand that this is a niche use case, but I want to document my results here for whatever benefit it may have. This WSL2 instance is a vanilla nixos stable:
Following the description in https://github.com/auxolotl/templates "Getting Started" / "With Nixos", at the step:
$ nixos-generate-config --show-hardware-config > hardware-configuration.nix
the system responds with these errors:
A
hardware-configuration.nix
is generated with a considerable numbers of stanzas that appear to correctly describe the instance, but it's not clear what effect if any the errors may have had on the output.Subsequently trying to switch to a system based on this flake produces these errors:
I believe the
/mnt/wslg
directory (and subdirectories) are WSL2 specific mounts, and it looks likenixos-generate-config
doesn't handle those correctly for some reason.Unfortunately, I'm not quite sure how this directory is mounted into WSL2 instances and how that might cause
nixos-generate-config
to fail (and I don't have a Windows to test/look into it).(Side note: You might be interested in using NixOs-WSL for your nixos wsl configuration.)
No worries, I wanted to document this issue for others and future attention, but I understand that aux is probably going to be concerned with more foundational issues for some time. This just happened to be the NixOs install I had to experiment with. Thanks for taking a look at it.
Yes, that's how this install was done. You'll see that in the nix-channel list at the top of the issue. A good pointer for anyone hoping to do this same thing, I agree.