-
Notifications
You must be signed in to change notification settings - Fork 27
Add initial support fo guix #47
base: master
Are you sure you want to change the base?
Conversation
Wow, that'd be cool! I tried to play with guix support myself, but I'm not familiar with the language and get lost in it... Scripts in this repository have to build or download a root filesystem, which is then cloned to create VPS. The build scripts are run by
Otherwise feel free to ask concretely, you can also join us on IRC in #vpsfree or #vpsadminos on irc.libera.chat. |
Based on the last time I looked at it, I think we'd need something like command If they at least supported LXC images like docker, we could fit into that. |
Hi @aither64, thanks for the information. True, it takes time to learn all the parentheses ... Well my idea was to follow the guide published for Linode As you correctly said we probably need to use Here's list of supported Guix images:
I'll look into Basically what is needed is to build the rootfs in correct format and then let the |
I'll try to explain the process a bit better. The build scripts's job is to build a container image, which is essentially a tarball of its root filesystem, i.e.
The builder containers are created from previously built images, so as it is, it cannot be guixsd. That shouldn't be a problem afaik, because it should be possible to run guix from another distribution. Built images are put into a repository at https://images.vpsadminos.org. When creating a VPS, the tarball is downloaded, extracted and then the init system is run, usually The problem I see with guixsd is that it does not support building the kind of image that we need, i.e. a normal system without needing bootloader and a disk to mount root filesystem from. The container's filesystem is already mounted when we run its I can demonstrate on NixOS. The build scripts calls make template from vpsAdminOS, which uses nixpkgs/nixos/lib/make-system-tarball.nix to create the tarball. So there's support for this kind of thing in nixpkgs itself. The question is if guixsd supports something like this :) In theory, you could build the docker image, then extract it to Edit: and when I say "container on vpsAdminOS" and "VPS", that's the same thing. |
I looked into creating the initial rootfs and the best option might be to download the guix installer and then run:
I'll try to implement it and send the updated PR. |
Hi,
I'd like to add another Linux distro. More information can be find here.
It's similar to NixOS, however I don't know how to integrate it correctly into VPSFree.
Could you provide guidance please?