Declarative system

Distinguish configuration input and a system generation.

Linux Architect

Lesson goal

Distinguish configuration input and a system generation.

How it works

In NixOS, configuration describes the desired state. The build produces a generation. You can choose a retained earlier generation during recovery.

# Read the NixOS manual before testing a real VM
# Model check: cat /etc/os-release

Try it

Find switch, boot, and test in the manual. Note which option selects the future boot configuration.

Check your understanding

What should you keep for reproducibility?

All lessons
Search Linux DNA

DNA / GUIDANCE

Tux

Hi! Choose your goal and I’ll guide you to the right section.

Local guidance, no external AI or data collection.