nixos-config VS nixos-infect

Compare nixos-config vs nixos-infect and see what are their differences.

nixos-infect

[GPLv3+] install nixos over the existing OS in a DigitalOcean droplet (and others with minor modifications) (by elitak)
InfluxDB - Power Real-Time Data Analytics at Scale
Get real-time insights from all types of time series data with InfluxDB. Ingest, query, and analyze billions of data points in real-time with unbounded cardinality.
www.influxdata.com
featured
WorkOS - The modern identity platform for B2B SaaS
The APIs are flexible and easy-to-use, supporting authentication, user identity, and complex enterprise features like SSO and SCIM provisioning.
workos.com
featured
nixos-config nixos-infect
20 20
8 1,155
- -
9.4 7.1
7 days ago about 1 month ago
Nix Shell
MIT License GNU General Public License v3.0 only
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-config

Posts with mentions or reviews of nixos-config. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2023-02-21.
  • how do you keep your installation clean and tidy?
    1 project | /r/linuxquestions | 10 Jun 2023
    I use Nix/NixOS. My system state is a direct result of my config that is declared in a bunch of text files. For example, leaf packages that are installed system-wide are declared here: https://github.com/Atemu/nixos-config/blob/e646c4ec1aac80cfdf7b8c79debcfaee70237018/packages.nix
  • Audiophiles on Linux; how is it?
    2 projects | /r/linuxquestions | 21 Feb 2023
    If it matters, my distro is NixOS and here's the machine's system config: https://github.com/Atemu/nixos-config/blob/95f9bb201ab4c2ab95fb3089909f5951a0646699/configs/HEPHAISTOS/default.nix
  • How do you backup/restore your system?
    1 project | /r/linuxquestions | 21 Jul 2022
    If something really goes south, I can have my entire system rebuilt automatically almost to the bit within 5-20min (mostly dependant on Internet speed) because my system is reproducible from just a bunch of text files.
  • Yast like tool for other distros?
    2 projects | /r/linuxquestions | 2 Jul 2022
    Here's my desktop configuration to give you an idea: https://github.com/Atemu/nixos-config/blob/0e97d9af632852e7440563a9b5976663e61071b7/desktop.nix
  • What distro are you guys running?
    4 projects | /r/linux_gaming | 28 Mar 2022
    If you want to know more: https://nixos.org/ Here's how such a system declaration can look like: My current desktop configuration, packages "installed" system-wide.
  • 1:1 backups, am i missing something obvious
    2 projects | /r/btrfs | 21 Feb 2022
    If you're looking for a way to restore your system configuration should your drive go kaput, perhaps look into declarative means of configuration instead. With those, your system is defined by a few text files and restoring or duplicating it is trivial. If you want to stay with Arch (great distro), imperative tools like Ansible, Puppet or Chef should work. If you want to try greener pastures, look into NixOS which is what I use. All I need to restore my machine is a few text files like this one (I just clone the git repo).
  • Finding a viable altarnative to arch linux
    1 project | /r/linuxquestions | 18 Feb 2022
  • Getting rid of the need for the usecase Linux distribution
    1 project | /r/linux_gaming | 3 Feb 2022
    It only takes https://github.com/Atemu/nixos-config/blob/master/configs/HEPHAISTOS/default.nix#L14 and all these settings are applied: https://github.com/Atemu/nixos-config/blob/af0960a7f7b0d6b9d775015c63a107ede6f63c82/desktop.nix
  • Does anyone else record all the changes they make and store it in a bash script?
    6 projects | /r/linuxquestions | 23 Dec 2021
    Here's the list of packages available in all my systems or my desktop configuration to give you an idea.
  • How NixOS does distro-building right
    1 project | /r/linux | 10 Dec 2021
    Set it up once precisely the way you like it, run forever. You only need slight tweaks every now and then to keep up with progress. On how many machines you want with as much shared configuration you want, any time you want. If your NixOS boot drive died, you could have a working NixOS system that's exactly[3] like the old one in a matter of minutes depending on your internet and hardware speed. (Without user data of course.) All you need is one (or a few if you prefer) lean text files that can and should be tracked in a git repo like this on: https://github.com/Atemu/nixos-config

nixos-infect

Posts with mentions or reviews of nixos-infect. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2024-04-20.
  • Ask HN: Please recommend how to manage personal serverss
    4 projects | news.ycombinator.com | 20 Apr 2024
    There is one solution I've seen being used to solve this issue.

    It is to overwrite the current Linux OS with the one you want. I came across this idea here [0]. I researched and got Alpine Linux running on Hetzner (even they don't support custom images) using a similar method [1].

    This seems to be the guide to do the same with Arch Linux [2], I'm not sure though.

    Once you do create a successful Arch image on OVH, take a snapshot of the machine before installing anything else, in case you want to start from a fresh Arch image in the future.

    [0] https://github.com/elitak/nixos-infect

    [1] https://wiki.alpinelinux.org/wiki/Replacing_non-Alpine_Linux...

    [2] https://wiki.archlinux.org/title/Install_Arch_Linux_from_exi...

  • NixOS Friendly (Dedicated Server, VPS, Cloud, Container, VM, etc.) Hosters
    1 project | news.ycombinator.com | 21 Oct 2023
    Related:

    https://www.reddit.com/r/NixOS/comments/u5gi6e/whats_a_good_...

    https://github.com/elitak/nixos-infect

  • NixOS stability for everyday use and development
    1 project | /r/NixOS | 1 Oct 2023
    In my experience, the initial learning curve is "way steep" due to incomplete learning resources, the community being split on flakes (I'm not jumping on them yet because I'm sticking with the stable branch), and this one documentation gap in particular.
  • Tech Independence
    5 projects | news.ycombinator.com | 17 Sep 2023
    FWIW, I recently found a VPS offering for $1.41/month (!) @ 1.5GB RAM & 30GB HDD via https://lowendbox.com/, at https://my.racknerd.com/index.php?rp=/store/black-friday-202... (please note I have no idea how reliable it is though!). I managed to deploy NixOS there through nixos-infect (https://github.com/elitak/nixos-infect), and then further configure it with NixOps. That said, using NixOps does currently require a Linux (or Mac, probably) box as the managing one, and some Nix-fu, which is definitely non-trivial. A draft (WIP) writeup on that, if you're interested: https://github.com/akavel/scribbles/blob/main/_drafts/202308...
  • 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).

  • Free Tier using custom images
    1 project | /r/oraclecloud | 22 Jun 2023
    for NixOS
  • Is it possible to morph Debian into NixOS?
    2 projects | /r/NixOS | 4 Jun 2023
  • NixOS 23.05
    1 project | /r/linux | 2 Jun 2023
    Now that you both mention it though, I probably could've skipped the "Boot into the installer" step. I know nixos-infect can install in-place. I havent checked how they do it, but a lighter version that just adds nixos should be pretty easy using ZFS. It probably would've been possible for me to do replace the installer steps with something along the lines of:
  • What is the difference between NixOS and any other distro running the nix package manager?
    5 projects | /r/NixOS | 15 May 2023
    You can execute nixos-rebuild on other distros but the NixOS modules and activation scripts expect it to run on NixOS system so it probably will not work (e.g. NixOS would want to control systemd, which would conflict with the distro). And if it did, you would no longer have the other distro but NixOS (see also nixos-infect).
  • Is anyone here using nix with modern hardware? r
    2 projects | /r/NixOS | 27 Mar 2023

What are some alternatives?

When comparing nixos-config and nixos-infect you can also consider the following projects:

docker-install - Docker installation script

harbormaster

manjarno - Reasons for which I don't use Manjaro anymore

tarsnap - Command-line client code for Tarsnap.

artix-installer - A simple installer for Artix Linux

nixos-apple-silicon - Resources to install NixOS bare metal on Apple Silicon Macs

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

nixos-digitalocean - A minimal NixOS image builder for DigitalOcean.

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.

rocky-tools

debian-post-installation-guide - A personal guide for steps and tips after the installation of Debian GNU/Linux

nixos-anywhere - install nixos everywhere via ssh [maintainer=@numtide]