Get in Touch

Course Outline

Declarative System Sovereignty

  • Understanding why imperative configuration management leads to drift and audit failures.
  • Utilizing the Nix store, derivations, and pure functions for system construction.
  • Comparing NixOS with traditional distributions: immutability and atomic upgrades.

Installation and Basics

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

Package and Service Management

  • Installing packages system-wide versus per-user using nix-env.
  • Declaratively enabling systemd services.
  • Creating custom package overrides and overlays.
  • Managing garbage collection and optimizing the store.

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 with agenix and sops-nix.
  • Testing deployments using NixOS VMs and containers.

System Updates and Rollbacks

  • Using 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 configuring the bootloader.

Advanced Topics

  • Working with NixOS containers and lightweight virtualization.
  • Handling cross-compilation and ARM builds.
  • Generating custom ISO and netboot images.
  • Utilizing Hydra for continuous integration of Nix packages.

Requirements

  • Advanced experience in Linux system administration and shell scripting.
  • Fundamental understanding of functional programming concepts.
  • Familiarity with Git and version-controlled configuration workflows.

Audience

  • Infrastructure engineers aiming for reproducible, declarative systems.
  • DevOps teams looking to replace Ansible, Puppet, or Chef with Nix.
  • Organizations requiring bit-for-bit reproducible deployments.
 21 Hours

Number of participants


Price per participant

Testimonials (4)

Upcoming Courses

Related Categories