Deploy GNU Guix to VPS

Introduction

  1. Get Guix System on VPS.
  2. Configure it with guix deploy.
  3. Configure NGINX.

Converting Ubuntu to Guix System

Prerequisits is a VPS and SSH access.

apt update -y && apt install guix -y
guix pull
GUIX_PROFILE="/root/.config/guix/current"
. "$GUIX_PROFILE/etc/profile"
ifconfig
route -n
cd /ssh:root@IP:/root
cp ~/guix ./ -r
cd guix
guix system build ./base.scm

mv /etc /old-etc
mkdir /etc
cp -r /old-etc/{passwd,group,shadow,gshadow,mtab,guix} /etc/

guix system reconfigure ./base.scm

guix deploy

Restreaming with NGINX

Restart on Deploy?

Conclusion

Links