Skip to content

Latest commit

 

History

History
45 lines (38 loc) · 1.12 KB

20210920113750-deploy_gnu_guix_to_vps.org

File metadata and controls

45 lines (38 loc) · 1.12 KB

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

Invoking guix deploy.

Restreaming with NGINX

Restart on Deploy?

Conclusion

Links