NixOS 101 Course / Section 1: Getting started: install NixOS and live with it
Premium

1.1 Welcome: is this NixOS course for you?

Lesson 1 of 28 · 21:48

placeholder thumbnail

Create a free account to watch this lesson

Free account · no credit card needed

Video chapters

  1. 0:00 Course Overview and Goals
  2. 1:35 Infrastructure as Code and NixOS Deployment Model
  3. 5:18 Modules, Services, and Deployment Workflows
  4. 9:08 Integration Tests and Atomic System Generations
  5. 13:40 Course Roadmap and Prerequisites
  6. 18:48 Hands-On Topics and What You’ll Learn
Transcript

Course Overview and Goals

0:00 Hey this is the NixOS 101 video course and in this first video we're going to discuss like what topics are we actually really touching, where are we going in depth, what is the goal and this way you can decide yourself if this training is for you yes or no. So let's have a quick look. In general the features in Nix that we want to learn about and to touch so that you know how to use them are like the following. So in general we can live infrastructure as code. I'm saying it here but you could use of course like any version control system to define one or multiple NixOS configurations in a repository and basically get them off the shelf deployed wherever you like. That is something which we'll basically do from day one because all your configuration is always written in text. We can have like one configuration that is being deployed to any form so we will also learn like how to do this in a way that we can always separate our NixOS configuration modules into like an application specific part and the platform specific part and this way you can swap out the platform specific part against something else and use the same system in a completely different deployment. So that means that you can deploy to laptops, servers, virtual machine images that are basically prefabricated for users, bootable USB

1:30 sticks, whatnot or even cloud systems whatever. We'll also learn how to define

Infrastructure as Code and NixOS Deployment Model

1:35 our own services as modules so you can write services.myapplication.enable equals true and then your application just works. That includes building the package, putting into the system, configuring a systemd service, hardening it, whatever. While we're not going too deep into like systemd details we're gonna learn how to make our dead packages a living service that just works. Next we also cover a deployment over SSH and different forms of deployment with remote builds and so on. In my experience people too early use configuration or deployment tools like krops, NixOps, Colmena and so on which are all great but we learn how the nixos-rebuild standard tool actually works and this way you will understand that for most cases you don't need additional tools. With that knowledge equipped you will be equipped better to kind of really decide what tool you really need and what tool imposes more of their configuration and taste and design decisions on you than it actually is useful. So we learn that 99 percent of our use cases are actually covered by nixos-rebuild and that's basically my favorite part of the video course.

Sign in for the full transcript.

About this lesson

This NixOS course takes you from installing NixOS by hand to writing your own service modules, deploying over SSH, and testing whole networks of machines. This first video walks through the topics and the prerequisites, so you can decide whether the course fits you before you start.

In this video

  • Why a NixOS configuration describes a target state instead of a list of steps, and what that means for rollbacks, upgrades, and security
  • The path through the course: from a bare Nix store to a bootable system, your own modules, deployments, containers, and integration tests
  • Why many teams reach for deployment tools like Colmena or NixOps too early
  • What you should already know about Nix and Linux, and the hardware that runs the exercises

After this lesson

You know what the course covers and whether your knowledge and your machine are ready for it. If they are not ready yet, you know which Nix 101 topics to revisit first.

Links: