nixos-generators VS Home Manager using Nix

Compare nixos-generators vs Home Manager using Nix and see what are their differences.

Our great sponsors
  • WorkOS - The modern identity platform for B2B SaaS
  • InfluxDB - Power Real-Time Data Analytics at Scale
  • SaaSHub - Software Alternatives and Reviews
nixos-generators Home Manager using Nix
20 182
1,508 5,863
14.1% 6.3%
8.3 9.8
5 days ago 5 days ago
Nix Nix
MIT License 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.

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.

Home Manager using Nix

Posts with mentions or reviews of Home Manager using Nix. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2024-04-18.
  • Cosmic Desktop: Hammering Out New Cosmic Features
    4 projects | news.ycombinator.com | 18 Apr 2024
    It's probably overkill for what you are trying to do. But I have been using home-manager [0] as a way to quickly restore my working environment.

    [0] https://nix-community.github.io/home-manager/

  • How do I actually update home-manager?
    2 projects | /r/NixOS | 6 Dec 2023
    $ home-manager --version 23.05 $ nix-channel --add https://github.com/nix-community/home-manager/archive/release-23.11.tar.gz home-manager $ nix-channel --update $ nix-shell '' -A install [...] All done! The home-manager tool should now be installed and you can edit /home/MY-USERNAME/.config/home-manager/home.nix to configure Home Manager. Run 'man home-configuration.nix' to see all available options. $ home-manager --version 23.05
  • Possible to use KDE plugins on nixos?
    3 projects | /r/NixOS | 6 Dec 2023
    Unfortunately until we find more volunteers in this area, it is hard to see status quo changing. See also https://github.com/nix-community/home-manager/issues/607 and this ongoing project https://github.com/pjones/plasma-manager
  • Exclude packages in home manager
    1 project | /r/NixOS | 5 Dec 2023
  • An Overview of Nix in Practice
    9 projects | news.ycombinator.com | 12 Nov 2023
    > Channels are, AFAIU, a reference to some point-in-time/commit/version of nixpkgs

    It's not specifically nixpkgs, but any Nix code generally.

    Per the Nix manual[0]:

    > Channels are a mechanism for referencing remote Nix expressions and conveniently retrieving their latest version.

    e.g. home-manager's suggested channel is just the github tarball for the relevant branch[1]:

      nix-channel --add https://github.com/nix-community/home-manager/archive/master.tar.gz home-manager
  • Fake recruiter Lazarus lured aerospace employee with trojanized coding challenge
    4 projects | news.ycombinator.com | 1 Oct 2023
    It sounds like you'd benefit a lot from Nix/NixOS [1], if not just home-manager[2].

    1. https://nixos.org/

    2. https://github.com/nix-community/home-manager

  • Noob question: Where home-manager config after installed on archlinux
    1 project | /r/Nix | 11 Sep 2023
    nix-channel --add https://github.com/nix-community/home-manager/archive/master.tar.gz home-manager nix-channel --update nix-shell '' -A install
  • Need help on home manager neovim config
    2 projects | /r/NixOS | 11 Sep 2023
    I'm using flakes and home manager and not really sure how to go about managing my neovim configuration. I've read through some other posts, github issues, and various articles trying to suss out a good way to do this. Reading through other people's configs and posts was somewhat helpful but there is a lot going on I don't understand and everyone's examples I've seen vary wildly.
  • Recurring 'Home Manager not found' Error After Running nix-collect-garbage"
    1 project | /r/Nix | 11 Aug 2023
    Said store path contains the home-manager repo. After the home-manager run, the store path is recreated.
  • I want to like NixOS but... I can't and I need some help
    3 projects | /r/NixOS | 12 Jul 2023
    I can't answer all your questions, but home-manager does have a dconf module that would probably be better to use than that external tool. Everything inside the options block are the things you can pass to the dconf module.

What are some alternatives?

When comparing nixos-generators and Home Manager using Nix you can also consider the following projects:

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

Ansible - Ansible is a radically simple IT automation platform that makes your applications and systems easier to deploy and maintain. Automate everything from code deployment to network configuration to cloud management, in a language that approaches plain English, using SSH, with no agents to install on remote systems. https://docs.ansible.com.

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

GNU Stow - GNU Stow - mirror of savannah git repository occasionally with more bleeding-edge branches

nix - Nix, the purely functional package manager

nixos-flake-example - This is a demo NixOS config, with optional flakes support. Along with notes on why flakes is useful and worth adopting.

nix-gaming - Gaming on Nix

NixOS-WSL - NixOS on WSL(2) [maintainer=@nzbr]

nixops - NixOps is a tool for deploying to NixOS machines in a network or cloud.

emacs-overlay - Bleeding edge emacs overlay [maintainer=@adisbladis]

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

chezmoi - Manage your dotfiles across multiple diverse machines, securely.