Install NixOS with Installer (UPDATED 2022-03-14)

Starting with NixOS - NI

It’s been a while since my last article, where we discussed the basic principles on which NixOS stands. To fully test it out, you might want to give it a go and install it on your system.

Using pre-built VirtualBox appliance

A good place to start is NixOS VirtualBox appliance. Just follow these instructions and you’re all set.

Motivation

But this article was aiming to provide NixOS install automation. There are some helpful articles which got me going, but what I still miss is an installer. We’ve seen such tendencies before. However, there is currently no maintained version I know of, which is both good and bad.

One of the explanations I’ve stumbled across quite a few times was that you don’t really want NixOS unless you precisely know what you’re doing. I agree to a degree. There’s a lot of people out there which prefer learning by doing. I’m one of them. And you can’t even start getting to know NixOS without knowing some Linux basics. Although I agree that it’s beneficial to know how partitioning works, it’s not necessary. So why do we include commands for partitioning in the official installation guide (for people to blindly copy&paste those), while assuming users already know all of this?

There’s even a YouTube video with a quick explanation and step by step installation instructions. But still, it’s not a guided installer.

NixOS Installer

Long story short, here’s the installer, be careful (this installer will wipe your disk) follow README and have fun :)

NixOS Inside

So, what’s inside? Whole config is available here. You’ll get:

  • To choose your username
  • To choose whether you want to encrypt your disk
  • Automatically generated diceware password for root/encryption
  • 8GB of SWAP in addition to your primary partition (which will use rest of the disk)
  • GNOME3 as your default desktop (+GDM)
  • Few GNOME3 tweaks (Literally, Tweaks)
  • Some basic packages (ark, vim, unzip, …)
  • A decent browser (Firefox)
  • A password manager (KeepassXC)
  • A private messenger (Signal)
  • A mail client (Thunderbird)
  • Enabled unfree (Steam, Spotify) packages installation
  • Enabled BlueTooth support with pulseaudio
  • Enabled printing
  • And much more!!!

The installer should guide you through the process.

Summary

I hope you’ll have fun and that it’ll work for you. Don’t hesitate to open issues directly on GitHub. In the next post, we’ll look around the package management, generations and the default configuration and try to hack some bits. Cheers!

LAST UPDATE: 2022-03-14