Get in Touch

Course Outline

Declarative System Sovereignty

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

Installation and Fundamentals

  • Installing NixOS from an ISO image using manual and automated partitioning methods.
  • Overview of the Nix language: sets, functions, and imports.
  • Structure of configuration.nix and the module system.
  • Utilizing nix search and manual pages to locate packages and options.

Package and Service Management

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

Reproducible Environments

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

Remote Deployment

  • Managing fleets with NixOps and Colmena.
  • Configuring remote builds and binary caches.
  • Managing secrets using agenix and sops-nix.
  • Testing deployments via NixOS virtual machines and containers.

System Updates and Rollbacks

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

Advanced Topics

  • Utilizing NixOS containers and lightweight virtualization.
  • Cross-compilation and building for ARM architectures.
  • Generating custom ISO and netboot images.
  • Implementing continuous integration for Nix packages using Hydra.

Requirements

  • Experience with advanced Linux system administration and shell scripting.
  • Fundamental understanding of functional programming principles.
  • Familiarity with Git and version-controlled configuration workflows.

Target Audience

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

Number of participants


Price per participant

Testimonials (4)

Upcoming Courses

Related Categories