This little tutorial will show you how to turn an Ubuntu Droplet (VM) on DigitalOcean into a NixOS Droplet using nixos-infect. NixOS is a Linux distribution declaratively configured using a specification written in the Nix expression language describing the system’s desired state. It supports automatic upgrades and rollbacks.
This tutorial will transform Ubuntu 18.04 LTS into NixOS 19.09 Loris.
Create a Droplet on DigitalOcean. I’d recommend a minimum of 2GB RAM, running Ubuntu 18.04 LTS.
Transform into NixOS⌗
First, clone the
$ git clone https://github.com/elitak/nixos-infect.git
Then simply run
cd nixos-infect/ ./nixos-infect
Give it some time, and you’ll eventually have a NixOS installation on your Droplet. Please note that this is highly experimental and not for any production use.
Good luck! 😀
2023-08-31 Revised language