Your NixOS VPS, as a file.Change it, roll it back.
NixOS 26.05 with root SSH on KVM. Packages, services, users and firewall rules live in /etc/nixos/configuration.nix, and nixos-rebuild switch turns that file into the running system.
NixOS is a Linux distribution built on the Nix package manager. The whole system is declared in one configuration, built into the read-only /nix/store, and activated as a numbered generation you can roll back. CloudSat's image boots NixOS 26.05 with root SSH and needs 1 GB of memory ($2.78 a month). Most packages arrive prebuilt from the official binary cache, and the same configuration, pinned with a flake, builds the same server in any of the 13 regions.
- Starting price
- $1.98 / month
- Deploy time
- Under 5 minutes
- Regions
- 13 worldwide
- Uplink
- 40 Gbps
- Uptime SLA
- 99.95%
- Money-back
- 14 days
Why NixOS: configuration drift has nowhere to hide.
Built from a file, not from shell history.
Generations and rollback
Every nixos-rebuild switch adds a generation and keeps the earlier ones. Undo a bad change with nixos-rebuild switch --rollback, or pick an older entry from the boot menu.
A server you can review
Keep configuration.nix, or a flake, in Git. A pull request shows exactly which package, port or service changes, so the diff doubles as the deployment plan.
Atomic switches
The new system is built completely in the Nix store before anything changes over. An interrupted build leaves the running system as it was, with no half-upgraded state to repair.
Prebuilt by default
The official binary cache serves compiled packages for nixpkgs, so a rebuild mostly downloads. Only your own derivations, overrides and patched packages compile on the server.
Familiar admin jobs, the NixOS way: written as configuration.
Everyday server tasks on a typical distribution and on NixOS.
| Task | Typical distribution | NixOS |
|---|---|---|
| Install a web server | apt install nginx | services.nginx.enable = true; |
| Add a tool | dnf install htop | environment.systemPackages = [ pkgs.htop ]; |
| Open a port | ufw allow 443 | networking.firewall.allowedTCPPorts = [ 443 ]; |
| Add a user | useradd -m alice | users.users.alice.isNormalUser = true; |
| Run a nightly job | A crontab line | systemd.services.backup.startAt = "daily"; |
nixos-rebuild switch; nixos-rebuild boot stages them for the next reboot instead.system.stateVersion at the value the image set: it records the release your data was created under, not the release you run.Twin servers, remote builders: where a NixOS VPS saves time.
Where a declarative system saves the most time.
Twin servers in two regions
Deploy one flake to a server in Frankfurt and another in Dallas, and both build the same system from the same pinned inputs. Only a few host options differ.
Deploys pushed from a laptop
nixos-rebuild switch --flake .#web --target-host root@203.0.113.10 builds locally and copies the result over SSH. deploy-rs adds automatic rollback when a host stops responding; Colmena handles many hosts at once.
Remote builders and caches
A larger plan makes a fast remote builder for your other machines through nix.buildMachines, or serves its store as a private binary cache with a tool such as Attic.
Containers declared like services
virtualisation.oci-containers runs Docker or Podman containers as systemd units, with images and ports declared beside everything else. NixOS containers add lightweight systemd-nspawn guests defined in the same file.
Auditable baselines
SSH settings, firewall rules, users and kernel options sit in one reviewed file. Reinstall a server from it after an incident and you know exactly what runs.
Learning Nix safely
Try modules, overlays and flakes on a disposable server billed by the hour. Break it, boot the previous generation, and keep what you learned in Git.
NixOS VPS locations: 13 regions. Pick the one next to your users.
Every region runs the same hardware, the same images and the same prices. Deploy in one, add another whenever you need it.
NixOS VPS plans and pricing. Pay only for what you use.
Hourly or monthly, or pay 3, 6 or 12 months up front and save up to 15%. Hourly servers never cost more than the monthly price.
See all 10 plans- 1 vCPU @ EPYC
- 20 GB NVMe
- 1 TB · 40 Gbps
- Dedicated IPv4 + IPv6
- Root SSH · KVM
- 1 vCPU @ EPYC
- 25 GB NVMe
- 1 TB · 40 Gbps
- Dedicated IPv4 + IPv6
- Root SSH · KVM
- 1 vCPU @ EPYC
- 60 GB NVMe
- 3 TB · 40 Gbps
- Dedicated IPv4 + IPv6
- Root SSH · KVM
- 2 vCPU @ EPYC
- 120 GB NVMe
- 5 TB · 40 Gbps
- Dedicated IPv4 + IPv6
- Root SSH · KVM
NixOS VPS questions, answered.
How do I move to a newer NixOS release?
nix-channel --add https://nixos.org/channels/nixos-YY.MM nixos, then nixos-rebuild switch --upgrade. On a flake, bump the nixpkgs input instead.Why did nixos-rebuild run out of memory?
swapDevices, or build on your own machine and push the result with --target-host. From 2 GB upward, routine rebuilds are comfortable.Should I convert the server to a flake?
/etc/nixos/configuration.nix, which is fine for one server. Flakes, still marked experimental, pin every input in flake.lock; enable them with nix.settings.experimental-features = [ "nix-command" "flakes" ]; and build with nixos-rebuild switch --flake .#web. Pin when several servers must build from identical inputs.What does a rollback leave untouched?
/etc and the kernel. It does not touch data in /var, /home or your databases, so a migration your application ran against its database stays applied. Snapshot the server in the console before major database upgrades.Why does /nix/store keep growing?
nix-collect-garbage --delete-older-than 14d, or set nix.gc.automatic = true; and nix.optimise.automatic = true; to clean and deduplicate on a schedule. The 1 GB plan's 25 GB disk fills sooner than you might expect.Can I reuse a configuration from another machine?
/etc/nixos and import them from configuration.nix, keeping the hardware settings the image already imports, since those describe this server's disk, boot loader and virtio drivers. Then nixos-rebuild switch turns the server into the machine you described.What if a network change cuts off SSH?
nixos-rebuild test: it activates them without making them the boot default, so a reboot brings back the last good generation. If you are already locked out, ask support for the VNC console and choose the previous generation in the boot menu.Can I install NixOS with my own disk layout?
Still have a question? Ask an engineer
Related to NixOS VPS
Gentoo VPS
Gentoo VPS with Portage, USE flags and your choice of OpenRC or systemd profile, on AMD EPYC with NVMe and DDR5. Root SSH, and official binary packages too.
Arch Linux VPS
Arch Linux VPS on a rolling release: pacman, the AUR and a minimal base on AMD EPYC with NVMe and DDR5. Root SSH from 512 MB, live in under 5 minutes.
Dev and test servers
Hourly VPS for development and testing: deploy in under 5 minutes, pay by the hour, rebuild to a clean OS, snapshot before risky steps and script it via API.
DevOps platform hosting
Self-hosted DevOps platform on your own servers: GitLab or Forgejo, CI runners, Coolify deploys and Grafana dashboards. One-click apps and a REST API.
Custom ISO
Custom ISO VPS: send an ISO link, we attach it to your KVM server and you install any OS in the browser VNC console. NVMe, DDR5, a dedicated IPv4.
Pricing
VPS pricing for every CloudSat plan: Cloud VPS from $1.98/mo, High Frequency from $2.78, GPU from $405.08 and bare metal. Hourly or monthly.
Write it once.
Deploy it in any region.
NixOS 26.05 from $2.78 a month, with every setting in version control.