* wsl
@ 2024-12-24 13:17 kevinbanjo
2025-01-03 22:52 ` wsl woshilapin
0 siblings, 1 reply; 5+ messages in thread
From: kevinbanjo @ 2024-12-24 13:17 UTC (permalink / raw)
To: help-guix
Does anyone have an actual currently working and reasonably simple solution
for guix system distribution under wsl?
Everything I try seems to be broken.
TIA,
-Kevin
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: wsl
2024-12-24 13:17 wsl kevinbanjo
@ 2025-01-03 22:52 ` woshilapin
2025-01-09 19:36 ` wsl kevinbanjo
2025-01-11 19:36 ` wsl kevinbanjo
0 siblings, 2 replies; 5+ messages in thread
From: woshilapin @ 2025-01-03 22:52 UTC (permalink / raw)
To: kevinbanjo; +Cc: help-guix
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)
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: wsl
2025-01-03 22:52 ` wsl woshilapin
@ 2025-01-09 19:36 ` kevinbanjo
2025-01-09 22:29 ` wsl woshilapin
2025-01-11 19:36 ` wsl kevinbanjo
1 sibling, 1 reply; 5+ messages in thread
From: kevinbanjo @ 2025-01-09 19:36 UTC (permalink / raw)
To: woshilapin; +Cc: help-guix
On Fri, Jan 3, 2025 at 2:52 PM woshilapin <woshilapin@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.
>
>
When I do:
$ guix system image --image-type=tarball operating-system.scm
I get:
guix system: error: failed to load 'operating-system.scm':
ice-9/boot-9.scm:3330:6: In procedure resolve-interface:
no code for module (home-environments)
I just did a guix pull in a (default) WSL2 Debian environment.
Any ideas?
I'm definitely not at expert level with guix yet. Learning it is one of
the reasons I need to get this running.
TIA,
-Kevin
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: wsl
2025-01-09 19:36 ` wsl kevinbanjo
@ 2025-01-09 22:29 ` woshilapin
0 siblings, 0 replies; 5+ messages in thread
From: woshilapin @ 2025-01-09 22:29 UTC (permalink / raw)
To: kevinbanjo; +Cc: help-guix
Hi Kevin,
> When I do:
>
> $ guix system image --image-type=tarball operating-system.scm
>
> I get:
>
> guix system: error: failed to load 'operating-system.scm':
> ice-9/boot-9.scm:3330:6: In procedure resolve-interface:
> no code for module (home-environments)
Right, it is indeed not enough. It's more a Guile problem (language) than a guix problem here. Basically, `operating-system.scm` depends on other modules (namely `home-environments`, present in the file `home-environments.scm`). However, you need to hint Guile to search for folders where it can find these modules (by default, it doesn't look for the current directory). Since you don't launch them with Guile but with `guix`, `guix` provide you with the `--load-path` option. So the following should work.
$> guix system image --load-path=. --image-type=tarball operating-system.scm
That said, you may not need `home-environments` at all. This brings `guix home` into the game. `guix home` is not needed to handle your home, and even less for setting up an OS.You can even use `guix home` in an independent way once the OS is installed. So might want to first have a working OS before digging more into `guix home`.
To remove `guix home` from the equation, you can edit `operating-system.scm` and remove the lines importing the module `home-environment` (`use-module` at the top), then the `guix home` service lines 233-234.
> (service guix-home-service-type
> `(("woshilapin" ,woshilapin-home-environment)))
> I just did a guix pull in a (default) WSL2 Debian environment.
Yes, that's actually a good idea and the way I did it too.
> Any ideas?
I hope this will help.
> I'm definitely not at expert level with guix yet. Learning it is one of the reasons I need to get this running.
>
> TIA,
> -Kevin
--
Jean (aka woshilapin)
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: wsl
2025-01-03 22:52 ` wsl woshilapin
2025-01-09 19:36 ` wsl kevinbanjo
@ 2025-01-11 19:36 ` kevinbanjo
1 sibling, 0 replies; 5+ messages in thread
From: kevinbanjo @ 2025-01-11 19:36 UTC (permalink / raw)
To: woshilapin; +Cc: help-guix
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 <woshilapin@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)
>
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2025-01-11 20:09 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-12-24 13:17 wsl kevinbanjo
2025-01-03 22:52 ` wsl woshilapin
2025-01-09 19:36 ` wsl kevinbanjo
2025-01-09 22:29 ` wsl woshilapin
2025-01-11 19:36 ` wsl kevinbanjo
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).