okay, thanks. I think I kind of have it. But I can't sudo. When I do it asks me for the password, which I've added to the config.scm file, but it doesn't seem to recognize it. I try and go into root from the windows wsl command, and it confirms I am root, but when I try and do passwd it tries to set the password it defaults to my user name then says authentication failure. If I try "passwd root" it says I can't change root's password (even tho I AM root at the time).
There are also still a number of errors/warnings when starting wsl -d guix for the first time (including the screwed up vertical line spacing here): guile: warning: failed to install locale guile: warning: failed to install locale warning: failed to delete /tmp: Directory not empty warning: failed to delete /run: Device or resource busy WARNING: (guile-user): imported module (guix build utils) overrides core binding `delete' making '/gnu/store/qmwy3vq6vd8ra28q8jmhl4gwsxpgplz6-system' the current system... populating /etc from /gnu/store/d5pq1jsh60q3fr964kycns4zhdf40il8-etc... WARNING: (guile-user): imported module (guix build utils) overrides core binding `delete' WARNING: (guile-user): imported module (guix build utils) overrides core binding `delete' setting up privileged programs in '/run/privileged/bin'... WARNING: (guile-user): imported module (guix build utils) overrides core binding `delete' GNU Shepherd 1.0.0 (Guile 3.0.9, x86_64-unknown-linux-gnu) Starting service root... Service root started. Service root running with value #<<process> id: 14 command: #f>. Service root has been started. starting services... Configuration successfully loaded from '/gnu/store/wa3s812krjmspf1s7cfccyzm0x57vmi8-shepherd.conf'. Starting service user-file-systems... Starting service root-file-system... Starting service host-name... Starting service pam... Service user-file-systems started. Service root-file-system started. Service host-name started. Service pam started. Service user-file-systems running with value #t. Service user-file-systems has been started. Service root-file-system running with value #t. Service root-file-system has been started. Service host-name running with value "gnu". Service host-name has been started. Service pam running with value #t. Service pam has been started. Starting service udev... waiting for udevd... Registering new logger for udev. Registering new logger for udev. % Service udev has been started. Service udev started. Service udev running with value #<<process> id: 28 command: #f>. Starting service file-system-/sys/fs/cgroup... Service file-system-/sys/fs/cgroup started. Service file-system-/sys/fs/cgroup running with value #t. Service file-system-/sys/fs/cgroup has been started. Starting service file-systems... Service file-systems started. gnu% Service file-systems running with value #t. Service file-systems has been started. Starting service user-homes... Service user-homes started. Service user-homes running with value #t. Service user-homes has been started. Starting service user-processes... Service user-processes started. Service user-processes running with value #t. Service user-processes has been started. Starting service guix-daemon... Service guix-daemon started. Service guix-daemon running with value #<<process> id: 54 command: #f>. Service guix-daemon has been started. Successfully started 10 services in the background. On Fri, Jan 3, 2025 at 2:52 PM woshilapin <woshila...@tuziwo.info> wrote: > Hi Kevin, > > > Does anyone have an actual currently working and reasonably simple > solution > > for guix system distribution under wsl? > > I actually have a working WSL with guix as the OS. You can take a look in > my repo [1] where I keep the working operating-system.scm. > > I hope this can help. I honestly can't remember all the problems I had > until I was able to make it work. But it now has been a few months working > with this system. > > I had help from [2] and [3] but ultimately, it was [4] which really helped > me. > > [1]: > https://github.com/woshilapin/dot/blob/main/config/guix/operating-system.scm > [2]: > https://github.com/giuliano108/guix-packages/blob/master/notes/Guix-on-WSL2.md > [3]: https://wiki.systemcrafters.net/guix/wsl/ > [4]: https://othacehe.org/wsl-images-for-guix-system.html > > > Everything I try seems to be broken. > > > > TIA, > > -Kevin > > I hope this helps. > > Sincerely, > -- > Jean (aka woshilapin) >