nixos-infect VS nix

Compare nixos-infect vs nix 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
SaaSHub - Software Alternatives and Reviews
SaaSHub helps you find the best software and product alternatives
www.saashub.com
featured
nixos-infect nix
20 373
1,165 10,943
- 2.9%
7.1 10.0
about 2 months ago 3 days ago
Shell C++
GNU General Public License v3.0 only GNU Lesser 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-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

nix

Posts with mentions or reviews of nix. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2024-04-28.
  • OSWorld: Benchmarking Multimodal Agents for Open-Ended Tasks in Real Computers
    2 projects | news.ycombinator.com | 28 Apr 2024
  • Eelco Dolstra's leadership is corrosive to the Nix project
    6 projects | news.ycombinator.com | 22 Apr 2024
    > https://github.com/NixOS/nix/pull/9911#issuecomment-19252073...
  • I use NixOS for my home-server, and you should too!
    1 project | dev.to | 22 Apr 2024
    As we covered in my last post, NixOS is a amazing Linux distribution for creating stable and declared environments. Now while this is amazing for a desktop setup, it is also perfect for a home-server or home-lab.
  • Tvix – A New Implementation of Nix
    8 projects | news.ycombinator.com | 16 Apr 2024
    (Nix itself is slowly chugging along with Windows via MinGW - https://discourse.nixos.org/t/nix-on-windows/1113/108 and https://github.com/NixOS/nix/issues/1320 , for example.)
  • Colima k8s nix setup
    4 projects | dev.to | 16 Apr 2024
    Nix is a cross-platform package manager. It uses the nix programming language. Nix and NixOs are often used in the same context, but while the first is a package manager, the latter is a linux distribution based on nix.
  • NixOs - Your portable dev enviroment
    1 project | dev.to | 8 Apr 2024
    Today I want to talk to you about Nixos. What is it? Nixos is a declarative and reproducible OS, partly taking the words used on their own page. What does that mean?
  • Nix – A One Pager
    6 projects | news.ycombinator.com | 6 Apr 2024
    Software developers often want to customize:

    1. their home environments: for packages (some reach for brew on MacOS) and configurations (dotfiles, and some reach for stow).

    2. their development shells: for build dependencies (compilers, SDKs, libraries), tools (LSP, linters, formatters, debuggers), and services (runtime, database). Some reach for devcontainers here.

    3. or even their operating systems: for development, for CI, for deployment, or for personal use.

    Nix provision all of the above in the same language, with Nixpkgs, NixOS, home-manager, and devShells such as https://devenv.sh/. What's more, Nix is (https://nixos.org/):

    - reproducible: what works on your dev machine also works in CI in prod,

    - declarative: you version control and review your configurations and infrastructure as code, at a reasonable level of abstraction,

    - reliable: all changes are atomic with easy roll back.

  • Tools for Linux Distro Hoppers
    7 projects | dev.to | 27 Mar 2024
    Hopping from one distro to another with a different package manager might require some time to adapt. Using a package manager that can be installed on most distro is one way to help you get to work faster. Flatpak is one of them; other alternative are Snap, Nix or Homebrew. Flatpak is a good starter, and if you have a bunch of free time, I suggest trying Nix.
  • Ask HN: Could Nix make crypto mining more efficient?
    1 project | news.ycombinator.com | 1 Mar 2024
    - it reduces bloat, because you can generate an environment or OS image with only the software needed to run a specific program or service

    My guess is that a big efficiency gain would come from the second point, because you don't waste CPU on code that you don't use.

    Does this make sense? Has anyone explored this?

    [0]: https://nixos.org

  • Go + Hypermedia - A Learning Journey (Part 1)
    6 projects | dev.to | 23 Feb 2024
    1) Setting up the development environment - I currently use devcontainers for most things, but may also dig into nix -> isolated, portable, repeatable development environment 2) Exploring Echo - understand routing, requests, response, etc. 3) Incorporate Templ - integration with Echo, template composition, etc. 4) Integrating TailwindCSS - config for use with Echo/Templ, development cycle, deployment, etc. 5) Add in HTMX - endpoints, template structure, concepts, etc. 6) hyperscript for interactivity - client side interactivity

What are some alternatives?

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

harbormaster

asdf - Extendable version manager with support for Ruby, Node.js, Elixir, Erlang & more

tarsnap - Command-line client code for Tarsnap.

distrobox - Use any linux distribution inside your terminal. Enable both backward and forward compatibility with software and freedom to use whatever distribution you’re more comfortable with. Mirror available at: https://gitlab.com/89luca89/distrobox

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

void-packages - The Void source packages collection

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

flatpak - Linux application sandboxing and distribution framework

rocky-tools

homebrew-emacs-plus - Emacs Plus formulae for the Homebrew package manager

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

guix - Read-only mirror of GNU Guix — pull requests are ignored, see https://guix.gnu.org/en/manual/en/guix.html#Submitting-Patches instead