nixops VS nixos-generators

Compare nixops vs nixos-generators and see what are their differences.

nixops

NixOps is a tool for deploying to NixOS machines in a network or cloud. (by NixOS)
Our great sponsors
  • WorkOS - The modern identity platform for B2B SaaS
  • InfluxDB - Power Real-Time Data Analytics at Scale
  • SaaSHub - Software Alternatives and Reviews
nixops nixos-generators
10 20
1,713 1,508
4.7% 14.1%
6.4 8.3
15 days ago 3 days ago
Python Nix
GNU Lesser General Public License v3.0 only MIT License
The number of mentions indicates the total number of mentions that we've tracked plus the number of user suggested alternatives.
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.

nixops

Posts with mentions or reviews of nixops. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2023-03-18.
  • 20 Years of Nix
    10 projects | news.ycombinator.com | 18 Mar 2023
    As far as I know, it’s still about [0]. I’ve had a better experience with deploy-rs though [1] - or even just using nixos-rebuild to target the remote machine.

    [0] - https://github.com/NixOS/nixops

  • Will we move away from DSLs?
    3 projects | /r/devops | 29 Apr 2022
    For example Nix can already replace ansible, packer, cloudformation[1], dockerfiles.
  • NixOS History and Our Experience - Nix, Null, Nada, Nothing
    8 projects | /r/NixOS | 26 Jan 2022
    Nix can also ship the nixpkgs as an oci image (e.g. docker image), vm image, iso, or if you're able to: as a nixos configuration. Tools like nixops can allow you to deploy many machines and have their behavior exactly specified, and the configuration can be version controlled. NixOS configuration can be thought of as congruent configuration management, where many other tools give you many less guarantees about configuration drift and reproducibility.
  • The best solution for deploying flakes
    5 projects | /r/NixOS | 30 Nov 2021
    There are 4 tools I'm taking into consideration right now, but every suggestion is welcome: 1. deploy-rs - I don't know anything about it, heard about it like a day or two ago 2. NixOps - the official one, I don't know what to think, but I have concerns about Flakes compatibility 3. morph - I understand this as "NixOps, but better", no more toughs. 4. colmena - seems to be pretty straightforward with quite nice docs
  • Spectrum OS: a declarative, reproducible, compartmentalized Linux
    7 projects | news.ycombinator.com | 14 Sep 2021
    I'm still relatively new to NixOS, having switched all my personal systems over to it this spring/summer. I don't have a detailed answer to your question, but I believe NixOPs is the canonical way to do what you're describing in production/at scale:

    https://github.com/NixOS/nixops

    https://nixos.org/nixops/manual/

  • Tool for managing multiple machines of a distributed system?
    1 project | /r/linux | 11 Aug 2021
    Nixops is specifically made for purposes like yours.
  • NixOS 21.05 Released!
    8 projects | /r/linux | 2 Jun 2021
    Well, everyone of course! But especially devops, developers, power-users, and ricer folks. Due to the declarative and purity aspect of nixpkgs, all builds and configurations can be version controlled, cached and shared. NixOS can easily be extended to produce docker images, vm images, or even distributed deployments. You can also write reproducible multi-node integration tests. Tinkerers! Love playing around with the latest desktop manager or modifying builds? Nixpkgs allows you to modify any package you wish to, locally! Nixpkgs is actually a source distribution but its guarantees around purity and reproducibility are so strong that you can get a binary cache "for free".
  • Backblaze Is Now a Terraform Provider
    3 projects | news.ycombinator.com | 11 Mar 2021
    You could use NixOps[0] for Nix but I'm not sure you can directly compare Terraform and Guix/Nix? My set up involves Terraform for infrastructure and Nix for provisioning, and it's working for me so far.

    [0] https://github.com/NixOS/nixops

  • Benefits/disadvantages of Guix System in general and over NixOS?
    5 projects | /r/GUIX | 10 Feb 2021
    I'll have to read more about NixOps though, I had kind of forgotten that it existed!
  • NixOS Linux
    7 projects | news.ycombinator.com | 10 Jan 2021
    Kind of off topic, but I would love to have NixOps (https://github.com/NixOS/nixops) as an abstraction layer for every type of cloud service, and not just virtual machines (e.g. queues, object storages, etc).

    There is Terraform and Ansible, of course, but Nix seems like it could combine the strengths of both of them.

nixos-generators

Posts with mentions or reviews of nixos-generators. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2024-03-26.
  • NixOS-generators – Collection of VM and Container disk image builders for NixOS
    4 projects | news.ycombinator.com | 26 Mar 2024
  • NixOS: Declarative Builds and Deployments
    13 projects | news.ycombinator.com | 14 Jan 2024
    https://github.com/nix-community/nixos-generators
  • NixOS RFC 136 accepted: A plan to stabilize the new CLI and Flakes incrementally
    11 projects | news.ycombinator.com | 12 Aug 2023
    Those Linode instructions are about installing an OS from an installation ISO from Linode's rescue mode. -- I'd consider that more a 'plus' to Linode that you get to be able to install whatever unsupported Linux on Linode's VMs. But, of course it's not as smooth as the officially supported images.

    Sibling comment mentions that NixOS provides ways to build VM images (e.g. https://github.com/nix-community/nixos-generators has a generator specifically for Linode).

    Another option is to use nixos-infect, which will replace a Linux distribution with a NixOS distribution. https://github.com/elitak/nixos-infect

    > At that point, I feel like all of the repeatability gains are gone. If I want to spin up a fresh server, I have to read a guide and set stuff up by hand?

    Just as with ansible, "git pull to deploy". You'd keep a copy of your NixOS configuration.nix somewhere else, and would be able to apply it later.

    > it really does let me just get a new VPS and deploy to it very fast

    Using a tool you're familiar with to get the job done is going to be faster than learning to use a tool you're unfamiliar with.

    I believe much of the use of NixOS is for hobby stuff, and for personal machines. (c.f. "In what environments do you use Nix", Development (1242) vs Home Server (845) vs Production (386) https://discourse.nixos.org/t/2022-nix-survey-results/18983).

  • Questions about Nix
    1 project | /r/NixOS | 17 Jun 2023
  • Couple of noob questions
    6 projects | /r/Nix | 20 May 2023
    If you need to generate lxc container in NixOS then perhaps this repo might be useful: https://github.com/nix-community/nixos-generators this article uses it https://www.thedroneely.com/posts/running-nixos-linux-containers/
  • disko-images - Create qcow2 images from NixOS + disko configuration
    3 projects | /r/NixOS | 18 May 2023
    You might wanna check out nix-community/nixos-generators, it’s maintained by the same dude as Disko
  • How to do machine specific config on EC2 using an official nixos ami?
    2 projects | /r/NixOS | 1 Apr 2023
    You can look at nixos-generators for support code that well let you take existing configs and build a variety of bootable images from them.
  • Flake to make NixOS iso
    2 projects | /r/NixOS | 21 Mar 2023
    You should take a look at NixOS Generators, it's a flake with configs to build common formats like ISO, LXC, Docker, etc. I use that to generate an ISO with my config, specifically the packages.iso section.
  • Need help with NixOs VM Generation
    2 projects | /r/NixOS | 25 Feb 2023
    I am trying to make use of https://github.com/nix-community/nixos-generators to generate qcow2 images from a NixOs configuration. Since it will be used with Scaleway, they require an efi bootable image.
  • [NixOS] How to Migrate From one Server to another? KVM to VMware
    1 project | /r/linuxquestions | 31 Jan 2023
    I haven't migrated machines from one vm provider to vmware, but I have provided a number of pregenerated nixos images (along the line of https://github.com/nix-community/nixos-generators) to clients to install onto vmware (and other - hyperv, xen, qemu, physical) hosts.

What are some alternatives?

When comparing nixops and nixos-generators you can also consider the following projects:

deploy-rs - A simple multi-profile Nix-flake deploy tool.

poetry2nix - Convert poetry projects to nix automagically [maintainer=@adisbladis]

terraform - Terraform enables you to safely and predictably create, change, and improve infrastructure. It is a source-available tool that codifies APIs into declarative configuration files that can be shared amongst team members, treated as code, edited, reviewed, and versioned.

NixOS-docker - DEPRECATED! Dockerfiles to package Nix in a minimal docker container

Home Manager using Nix - Manage a user environment using Nix [maintainer=@rycee]

nix - Nix, the purely functional package manager

morph - NixOS deployment tool

nix-gaming - Gaming on Nix

patchelf - A small utility to modify the dynamic linker and RPATH of ELF executables

digga - A flake utility library to craft shell-, home-, and hosts- environments.

colmena - A simple, stateless NixOS deployment tool

nixos-shell - Spawns lightweight nixos vms in a shell