Managing my vps with nix and nixos is a great way to ensure that my server is reproducible and maintainable. This repository contains the configuration files and scripts necessary to set up and manage my VPS using NixOS.
- If using DigitalOcean:
Create a new custom image from the latest NixOS
nix run .#buildDoImageThat will create a result directory with the image file.
Import that image into DigitalOcean and create a new droplet with it.
Then inside ./config, edit flake.nix to add a new configuration for your new vps in the colmena section.
- Elsewhere:
Follow the instructions in the nixos-anywhere repo to install NixOS on the VPS using the ./builder/nixos-anywhere directory.
Deployemnt is done using colmena.