giuliano108 / guix-packages

Guix on WSL2, packages and notes
GNU General Public License v3.0
51 stars 9 forks source link

Using a Guix disk image directly #1

Open rekado opened 4 years ago

rekado commented 4 years ago

Hi,

I found your notes/Guix-on-WSL2.md very interesting. Have you considered doing without busybox and using a Guix-generated disk image directly as the root file system?

If that works I'd be happy to see this added to the Guix Cookbook.

giuliano108 commented 4 years ago

As far as I understand, you would need to use a Guix system to create the image/tarball. And if you don't have a Guix system, how would you bootstrap one? Unless you're suggesting someone takes on the task building the image, publishing the image on the Internet and keeping it up to date (I'm sure that's doable and would work)...

rekado commented 4 years ago

You don't need to run Guix System to use the "guix system" command. You can generate disk images with "guix system disk-image" even on foreign distributions.

giuliano108 commented 4 years ago

You can generate disk images with "guix system disk-image" even on foreign distributions

Yes, you either need GuixSD or Guix running on a foreign distro. I tried to document a procedure that would allow someone to install Guix on WSL2 without either of those things. It's a lower "barrier to entry", in my opinion...