Need advice about which tool to choose?Ask the StackShare community!

NixOS

101
92
+ 1
12
Ubuntu

78.6K
57.9K
+ 1
468
Add tool

NixOS vs Ubuntu: What are the differences?

Key Differences between NixOS and Ubuntu

NixOS and Ubuntu are both popular operating systems, but they have significant differences that set them apart. Here are six key differences between the two:

  1. Package Management: NixOS utilizes the Nix package manager, which follows a purely functional approach and allows for reproducible builds. On the other hand, Ubuntu uses the Advanced Package Tool (APT) and Debian packages, which focus more on stability and ease of use.

  2. Configuration Management: NixOS relies on a declarative configuration model, where the entire system configuration is defined in a single file. This makes it easier to manage and reproduce the system state. In contrast, Ubuntu uses a more traditional imperative configuration model, where the system configuration is managed through various tools and configuration files.

  3. Rolling Release vs. Fixed Release: NixOS follows a rolling release model, which means that updates are released continuously and users can easily switch between different versions of packages. Ubuntu, on the other hand, follows a fixed release model, where major updates are released at regular intervals and users need to upgrade their entire system to get the newest features.

  4. System Integration and Security: NixOS is designed to provide a consistent and reproducible system environment by isolating packages through containerization techniques. This brings added security and reduces the likelihood of conflicts between applications. Ubuntu focuses more on system integration and ease of use, providing a stable and user-friendly experience.

  5. Customizability and Extensibility: NixOS allows for fine-grained customization of the system configuration, making it easier to tailor the system to specific use cases. It provides the ability to define custom package sets and easily create reproducible development environments. While Ubuntu also allows customization, it may require more manual configuration and doesn't offer the same level of granularity as NixOS.

  6. Community Support and Documentation: Ubuntu has a larger and more established community with extensive documentation, making it easier to find solutions and get support for any issues. NixOS has a smaller but passionate community, and while the documentation is improving, it may not be as comprehensive as Ubuntu's.

In summary, NixOS and Ubuntu differ in their package and configuration management approaches, release models, system integration and security measures, customizability and extensibility options, as well as community support and documentation.

Decisions about NixOS and Ubuntu

Ubuntu is much more faster over Windows and helps to get software and other utilities easier and within a short span of time compared to Windows.

Ubuntu helps to get robustness and resiliency over Windows. Ubuntu runs faster than Windows on every computer that I have ever tested. LibreOffice (Ubuntu's default office suite) runs much faster than Microsoft Office on every computer that I have ever tested.

See more
Jerome/Zen Quah
Chose
UbuntuUbuntu
over
CentOSCentOS

Global familiarity, free, widely used, and as a debian distro feels more comfortable when rapidly switching between local macOS and remote command lines.

CentOS does boast quite a few security/stability improvements, however as a RHEL-based distro, differs quite significantly in the command line and suffers from slightly less frequent package updates. (Could be a good or bad thing depending on your use-case and if it is public facing)

See more
Simon Aronsson
Developer Advocate at k6 / Load Impact · | 7 upvotes · 283.1K views

At the moment of the decision, my desktop was the primary place I did work. Due to this, I can't have it blow up on me while I work. While Arch is interesting and powerful, Ubuntu offers (at least for me) a lot more stability and lets me focus on other things than maintaining my own OS installation.

See more
Manage your open source components, licenses, and vulnerabilities
Learn More
Pros of NixOS
Pros of Ubuntu
  • 3
    Atomic upgrades
  • 2
    Declarative system configuration
  • 2
    Multi-user package management
  • 2
    Reproducible environment
  • 2
    Rollback for any changes
  • 1
    Cloud Agnostic Deployments
  • 230
    Free to use
  • 96
    Easy setup for testing discord bot
  • 57
    Gateway Linux Distro
  • 54
    Simple interface
  • 9
    Don't need driver installation in most cases
  • 6
    Open Source
  • 6
    Many active communities
  • 3
    Software Availability
  • 3
    Easy to custom
  • 2
    Many flavors/distros based on ubuntu
  • 1
    Lightweight container base OS
  • 1
    Great OotB Linux Shell Experience

Sign up to add or upvote prosMake informed product decisions

Cons of NixOS
Cons of Ubuntu
    Be the first to leave a con
    • 5
      Demanding system requirements
    • 4
      Adds overhead and unnecessary complexity over Debian
    • 2
      Snapd installed by default
    • 1
      Systemd

    Sign up to add or upvote consMake informed product decisions

    What is NixOS?

    It is a Linux distribution with a unique approach to package and configuration management. Built on top of the Nix package manager, it is completely declarative, makes upgrading systems reliable, and has many other advantages.

    What is Ubuntu?

    Ubuntu is an ancient African word meaning ‘humanity to others’. It also means ‘I am what I am because of who we all are’. The Ubuntu operating system brings the spirit of Ubuntu to the world of computers.

    Need advice about which tool to choose?Ask the StackShare community!

    What companies use NixOS?
    What companies use Ubuntu?
    Manage your open source components, licenses, and vulnerabilities
    Learn More

    Sign up to get full access to all the companiesMake informed product decisions

    What tools integrate with NixOS?
    What tools integrate with Ubuntu?

    Sign up to get full access to all the tool integrationsMake informed product decisions

    Blog Posts

    JavaScriptGitGitHub+33
    20
    2136
    What are some alternatives to NixOS and Ubuntu?
    CoreOS
    It is designed for security, consistency, and reliability. Instead of installing packages via yum or apt, it uses Linux containers to manage your services at a higher level of abstraction. A single service's code and all dependencies are packaged within a container that can be run on one or many machines.
    Docker
    The Docker Platform is the industry-leading container platform for continuous, high-velocity innovation, enabling organizations to seamlessly build and share any application — from legacy to what comes next — and securely run them anywhere
    Manjaro
    It is an accessible, friendly, open-source Linux distribution and community. Based on Arch Linux, it provides all the benefits of cutting-edge software combined with a focus on getting started quickly, automated tools to require less manual intervention, and help readily available when needed.
    Debian
    Debian systems currently use the Linux kernel or the FreeBSD kernel. Linux is a piece of software started by Linus Torvalds and supported by thousands of programmers worldwide. FreeBSD is an operating system including a kernel and other software.
    Kubernetes
    Kubernetes is an open source orchestration system for Docker containers. It handles scheduling onto nodes in a compute cluster and actively manages workloads to ensure that their state matches the users declared intentions.
    See all alternatives