Get in Touch

Course Outline

Declarative System Sovereignty

  • Why imperative configuration management leads to drift and audit failure.
  • The Nix store, derivations, and pure functions for system building.
  • NixOS compared to traditional distros: immutability and atomic upgrades.

Installation and Basics

  • Installing NixOS from an ISO file with manual and automated partitioning.
  • The Nix language: sets, functions, and imports.
  • The structure of configuration.nix and its module system.
  • Searching for packages and options using nix search and manual pages.

Package and Service Management

  • Installing packages system-wide versus per-user with nix-env.
  • Enabling systemd services declaratively.
  • Creating custom package overrides and overlays.
  • Garbage collection and store optimization techniques.

Reproducible Environments

  • Using nix-shell and shell.nix for ad-hoc development.
  • Leveraging Nix Flakes for lockfile-based reproducibility.
  • Utilizing devenv and devshell for streamlined team onboarding.
  • Integrating Direnv for automatic environment switching.

Remote Deployment

  • Managing fleets with NixOps and Colmena.
  • Configuring remote building and binary caches.
  • Managing secrets using agenix and sops-nix.
  • Testing deployments using NixOS VMs and containers.

System Updates and Rollbacks

  • Utilizing nixos-rebuild in switch, test, and boot modes.
  • Performing atomic rollbacks to previous system generations.
  • Managing channels and pinning for reproducible updates.
  • Handling emergency recovery and bootloader configuration.

Advanced Topics

  • Using NixOS containers and lightweight virtualization.
  • Performing cross-compilation and ARM builds.
  • Generating custom ISO and netboot images.
  • Implementing Hydra continuous integration for Nix packages.

Requirements

  • Advanced Linux system administration skills and experience with shell scripting.
  • A fundamental understanding of functional programming principles.
  • Familiarity with Git and version-controlled configuration workflows.

Audience

  • Infrastructure engineers aiming for reproducible, declarative systems.
  • DevOps teams seeking to replace tools like Ansible, Puppet, or Chef with Nix.
  • Organizations requiring bit-for-bit reproducible deployment processes.
 21 Hours

Number of participants


Price per participant

Testimonials (4)

Upcoming Courses

Related Categories