Software Alternatives, Accelerators & Startups

Homebrew VS NixOS

Compare Homebrew VS NixOS and see what are their differences

Homebrew logo Homebrew

The missing package manager for macOS

NixOS logo NixOS

25 Jun 2014 . All software components in NixOS are installed using the Nix package manager. Packages in Nix are defined using the nix language to create nix expressions.
  • Homebrew Landing page
    Landing page //
    2023-03-29
  • NixOS Landing page
    Landing page //
    2023-09-12

Homebrew features and specs

  • User-Friendly
    Homebrew provides an easy-to-use command-line interface that simplifies the installation and management of software packages.
  • Wide Range of Packages
    Homebrew offers a vast repository of software, covering a broad spectrum of utilities, languages, and applications.
  • Dependency Management
    Homebrew automatically handles dependencies, ensuring that all required packages are installed and up to date.
  • Community Support
    Homebrew has a strong community backing and regular contributions, which ensures frequent updates and a robust support system.
  • Cross-Platform
    Homebrew is available on macOS and Linux, allowing for consistent package management across different operating systems.
  • Customizability
    Users can create their own formulae to install software that isn’t available in the core repositories.

Possible disadvantages of Homebrew

  • Resource Intensive
    Some users find that Homebrew can be resource-intensive, particularly during installation of large packages or those with numerous dependencies.
  • Security Risks
    Because Homebrew allows for the installation of third-party software, there is a potential risk of downloading insecure or malicious packages.
  • Complexity for Beginners
    While user-friendly for most, beginners with no command-line experience might find the initial learning curve steep.
  • Duplication
    Users might accidentally install software that is already managed by other package managers or system libraries, leading to duplication.
  • Limited GUI Support
    Homebrew is primarily a command-line tool and lacks a graphical user interface, which could be a drawback for users who prefer GUI-based package management.

NixOS features and specs

  • Reproducibility
    NixOS ensures that the system configuration is entirely reproducible. Every package, configuration file, and system setting is defined in a single, declarative configuration file, enabling easy recreation of the environment on different machines or after clean installs.
  • Atomic Upgrades & Rollbacks
    Upgrades in NixOS are atomic, meaning they either complete successfully or not at all. Additionally, it is easy to rollback to previous configurations if something goes wrong, which adds a significant safety net during system updates.
  • Isolated Environments
    NixOS supports creating isolated development environments, preventing dependency conflicts and allowing developers to work with different versions of packages comfortably.
  • Package Management
    Nix, the package manager of NixOS, allows for the installation of multiple versions of the same software simultaneously without conflicts, facilitating experimentation and development.
  • Declarative Configuration
    All aspects of the NixOS system are configurable using a declarative language, making it easier to understand, share, and reproduce configurations compared to imperative setups.

Possible disadvantages of NixOS

  • Learning Curve
    NixOS and its package manager Nix have a steep learning curve, especially for users who are new to its declarative approach. Mastery requires a willingness to adopt a new mindset and learn new concepts.
  • Smaller Community
    Compared to more mainstream Linux distributions, NixOS has a smaller user and developer community, which can lead to fewer resources, tutorials, and community support options available for problem-solving.
  • Package Availability
    While Nixpkgs is extensive, there are occasions where certain packages may not be available or may not have the latest versions, requiring users to create their own packages or wait for updates.
  • Performance Overheads
    The guarantee of reproducibility and isolation can introduce performance overheads in some scenarios, particularly when dealing with build processes that have not been specifically optimized for Nix.
  • System Configuration Complexity
    The ability to configure everything declaratively can lead to complex and lengthy configuration files, which can be daunting and hard to manage as the complexity of the environment increases.

Homebrew videos

Homebrew Review: Coopers Lager - Taste Test

More videos:

  • Review - Homebrew Review | Alchemist Class by Mage Hand Press (featuring Designer Mike Holik)
  • Review - Northern Brewer Cream Ale Homebrew Review Tasting

NixOS videos

First Impression of the NixOS Installation Procedure

More videos:

  • Review - Introduction to NixOS - Brownbag by Geoffrey Huntley
  • Review - NixOS 18.03 - A Configuration-focused GNU+Linux Distro

Category Popularity

0-100% (relative to Homebrew and NixOS)
Front End Package Manager
Package Manager
71 71%
29% 29
Windows Tools
100 100%
0% 0
Developer Tools
74 74%
26% 26

User comments

Share your experience with using Homebrew and NixOS. For example, how are they different and which one is better?
Log in or Post with

Reviews

These are some of the external sources and on-site user reviews we've used to compare Homebrew and NixOS

Homebrew Reviews

Top Homebrew Alternative: ServBay Becomes the Go-To for Developers
Homebrew is a highly popular package manager on macOS and Linux systems, enabling users to easily install, update, and uninstall command-line tools and applications. Its design philosophy focuses on simplifying the software installation process on macOS, eliminating the need for manual downloads and compilations of software packages.
Source: medium.com

NixOS Reviews

The 10 Best Immutable Linux Distributions in 2024
Why it’s on the list: NixOS uses the Nix package manager, which treats packages as isolated from each other. This unique approach to package management virtually eliminates “dependency hell”.

Social recommendations and mentions

Based on our record, Homebrew should be more popular than NixOS. It has been mentiond 917 times since March 2021. We are tracking product recommendations and mentions on various public social media platforms and blogs. They can help you identify which product is more popular and what people think of it.

Homebrew mentions (917)

  • Connect to Unsupported Older Linux servers with VS Code Remote-SSH using Custom glibc & libstdc++
    Install glibc and patchelf using brew (Homebrew), or build from source, or use a prebuilt binary (if available). This guide uses brew. Also you can see this. - Source: dev.to / 18 days ago
  • Dark Souls CRUD Arena - The Prisoner Approach
    In past personal projects, and in my most recent role, I've used Docker for dependency management to avoid the "works on my machine" scenario. I also just like keeping dependencies off my machine, but for this project I opted not to use containers given my lack of dependencies. I used Homebrew for all my needs :). - Source: dev.to / about 1 month ago
  • Use the Amazon Q Developer CLI on AWS Graviton
    Install Homebrew if it's not already available on your computer. - Source: dev.to / 28 days ago
  • 5 Local Environment Mistakes I See Everywhere, and How to Fix Them Properly
    # ./launch.sh: #!/bin/bash if ! Command -v brew &> /dev/null; then echo "❌ Homebrew is not installed. Install it from https://brew.sh/" exit 1 fi if ! Command -v docker &> /dev/null; then echo "⚙️ Installing Docker..." brew install --cask docker fi if ! Command -v php &> /dev/null; then echo "🐘 Installing PHP..." brew install php@8.3 fi. - Source: dev.to / about 1 month ago
  • Open Source Developer Patronage Programs: A Sustainable Future for FOSS
    Projects like curl and Homebrew have successfully leveraged patronage programs to achieve financial sustainability. These examples highlight the potential for other projects to follow suit and secure the funding necessary for continued innovation. - Source: dev.to / 2 months ago
View more

NixOS mentions (266)

  • Show HN: Node.js video tutorials where you can edit and run the code
    I'd love to create some Nix (https://nixos.org/) content. - Source: Hacker News / 9 days ago
  • 20 years of Git. Still weird, still wonderful
    NixOS may end up being "the last OS I ever use" (especially now that gaming is viable on it): https://nixos.org/ Check it out. The whitepaper's a fairly digestible read, too, and may get you excited about the whole concept (which is VERY different from how things are normally done, but ends up giving you guarantees). - Source: Hacker News / 25 days ago
  • Overengineer your CV
    For implementing the themes I have decided to use nix flakes since they allow each theme to specify their own dependencies and which command to run with the resulting JSON from the previous step as input. Another alternative could have been to use docker, but I wanted to learn more about nix. - Source: dev.to / about 2 months ago
  • Easy Development Environments
    One of the most tedious and time-wasting parts of the development process is setting up tooling. For a NodeJS project this requires getting the right Node version, getting the preferred package manager, installing things like a linter, formatter, and sometimes a compiler for TypeScript or other JS-transpiled languages. Well today we are going to talk about using Nix as an SDK/tool manager, and how we can setup... - Source: dev.to / about 2 months ago
  • Ask HN: Who is hiring? (February 2025)
    Zest Dermatology | Remote (USA residents only) | Full-time | Systems Administrator / Software Engineer | https://zesthealth.com Zest is a virtual dermatology clinic that delivers care for chronic eczema and psoriasis with a level of satisfaction and patient outcomes that are unheard of in conventional dermatology. What makes Zest particularly exciting is its value-based care business model, a topic worth... - Source: Hacker News / 3 months ago
View more

What are some alternatives?

When comparing Homebrew and NixOS, you can also consider the following products

Chocolatey - The sane way to manage software on Windows.

GNU Guix - Like Nix but GNU.

iTerm2 - A terminal emulator for macOS that does amazing things.

asdf-vm - An extendable version manager

VS Code - Build and debug modern web and cloud applications, by Microsoft

pacman (package manager) - The pacman package manager is one of the major distinguishing features of ...