Le lundi 09 novembre 2020 à 17:40 -0500, Joshua Branson a écrit :
> You might try using a linode VPS. That's what I'm using. There is a
> guide in the cookbook that shows you how to set it up. :)
>
Hey Raingloom !
I just played with Guix and DigitalOcean last couple of days.
If it's what you are looking for :
On my personal Ubuntu laptop, where I use Guix as a package manager, I
generated a compressed guix system image with :
$ guix system disk-image -t qcow2 do-conf.scm --image-size=5G
Then I uploaded the resulting image (i.e.
/gnu/store/f34vzy15zzk739l6gimkj5l4sn3brski-image.qcow2) as a custom
image on DigitalOcean.
Finally I create a droplet with this custom image and voilà !
Easy peasy.
Hope it will help!
(use-modules (gnu))
(use-service-modules ssh networking)
(use-package-modules screen ssh certs version-control)
(operating-system
(host-name "doguix")
(timezone "Europe/Paris")
(locale "fr_FR.utf8")
(packages (cons* screen git nss-certs %base-packages))
(bootloader (bootloader-configuration
(bootloader grub-bootloader)
(target "/dev/vda")))
(file-systems (cons (file-system
(mount-point "/")
(device "/dev/vda1")
(type "ext4"))
%base-file-systems))
(services
(append
(list
(service dhcp-client-service-type)
(service openssh-service-type
(openssh-configuration
(openssh openssh-sans-x)
(permit-root-login 'without-password)
(authorized-keys
`(("root" ,(local-file "/home/jeko/.ssh/id_ed25519.pub"))))
(port-number 2222))))
%base-services)))