Skip to main content
<  

NixOS Manual

Version 27.05.20261128.4b21f50

  • Preface

Getting started

  • Getting started
  • Obtaining NixOS

Installing NixOS

  • Installing NixOS
  • Booting from a USB flash drive
  • Booting from the "netboot" media (PXE)
  • "Booting" into NixOS via kexec
  • Installing in a VirtualBox guest
  • Installing from another Linux distribution
  • Installing behind a proxy
  • Changing the Configuration
  • Upgrading NixOS

Guides

  • Guides

Configuration Syntax

  • Configuration Syntax
  • NixOS Configuration File
  • Abstractions
  • Modularity

Package Management

  • Package Management
  • Declarative Package Management
  • Customising Packages
  • Adding Custom Packages
  • Ad-Hoc Package Management
  • User Management

File Systems

  • File Systems
  • LUKS-Encrypted File Systems
  • SSHFS File Systems
  • NFS File Systems
  • Overlayfs

Networking

  • Networking
  • NetworkManager
  • Secure Shell Access
  • IPv4 Configuration
  • IPv6 Configuration
  • Firewall
  • Wireless Networks
  • Ad-Hoc Configuration
  • Renaming network interfaces

Graphical Desktops

  • X Window System
  • Wayland
  • GPU acceleration
  • Xfce Desktop Environment

Building Images

  • Building a NixOS (Live) ISO
  • Building Images with nixos-rebuild build-image
  • Building Images via systemd-repart

Administration

  • Administration
  • Service Management
  • Rebooting and Shutting Down
  • User Sessions
  • Logging
  • Cleaning the Nix Store

Container Management

  • Container Management
  • Imperative Container Management
  • Declarative Container Specification
  • Container Networking

Troubleshooting

  • Troubleshooting
  • Boot Problems
  • Maintenance Mode
  • Rolling Back Configuration Changes
  • Nix Store Corruption
  • Network Problems

Services and Programs

  • Services and Programs
  • NixOS Facter
  • Input Methods
  • Digital Bitbox
  • Plotinus
  • Oh my ZSH
  • SSL/TLS Certificates with ACME
  • TPM2
  • Navidrome
  • BorgBackup
  • GARM
  • Apache Cassandra
  • FoundationDB
  • PostgreSQL
  • TigerBeetle
  • GNOME Desktop
  • Pantheon Desktop
  • Flatpak
  • Athens
  • Blackfire profiler
  • Livebook
  • Emacs
  • Customizing display configuration
  • Trezor
  • Mailman
  • Draupnir (Matrix Moderation Bot)
  • Maubot
  • Mautrix-Discord
  • Mautrix-Signal
  • Mautrix-Whatsapp
  • Mjolnir (Matrix Moderation Tool)
  • Matrix
  • Anki Sync Server
  • Apache Kafka
  • CLIProxyAPI
  • Dump1090-fa
  • Forgejo
  • GitLab
  • Jellystat
  • MeshLLM
  • Paisa
  • Pelican Panel
  • Pelican Wings
  • Tandoor Recipes
  • Taskserver
  • Tdarr
  • WeeChat
  • Cert Spotter
  • Goss
  • OCS Inventory Agent
  • parsedmarc
  • Prometheus exporters
  • Litestream
  • Samba
  • aMule
  • Anubis
  • atalkd
  • 🦀 crab-hole
  • Dnsmasq
  • DNS-over-HTTPS Server
  • Firefox Sync server
  • GNS3 Server
  • Jottacloud Command-line Tool
  • LXMD
  • Mosquitto
  • Netbird Client
  • Netbird Relay
  • Netbird server
  • Spreed standalone signaling server
  • NordVPN
  • Microsoft OneDrive
  • pihole-FTL
  • Pleroma
  • Portmaster
  • Prosody
  • RNSD
  • uMurmur
  • Yggdrasil
  • Zapret2
  • Meilisearch
  • How to reset data and etc directories
  • Falco
  • kerberos_server
  • systemd-lock-handler
  • Akkoma
  • c2FmZQ
  • Davis
  • Discourse
  • Ente.io
  • FileSender
  • Glance
  • GoToSocial
  • Grocy
  • Hatsu
  • Jitsi Meet
  • Keycloak
  • Lemmy
  • Matomo
  • Nextcloud
  • OpenCloud
  • Pict-rs
  • Pi-hole Web Dashboard
  • Plausible
  • strfry
  • Suwayomi-Server
  • Szurubooru
  • wanderer
  • YouTrack
  • Garage
  • Clevis
  • External Bootloader Backends
  • tpm2-totp with Plymouth
  • Xen Project Hypervisor
  • Subversion
  • Mattermost
  • Kubernetes

Reference

  • Reference

Profiles

  • Profiles
  • All Hardware
  • Base
  • Clone Config
  • Demo
  • Docker Container
  • Graphical
  • Headless
  • Installation Device
  • Perlless
  • Minimal
  • QEMU Guest
  • Linux Kernel

Necessary system state

  • Necessary system state
  • NixOS
  • systemd
  • ZFS

What happens during a system switch?

  • What happens during a system switch?
  • Unit handling
  • Activation script
  • Non Switchable Systems
  • /etc via overlay filesystem
  • Control Groups
  • Bootspec
  • Modular Services

Contributing

  • Contributing
  • Getting the Sources

Writing NixOS Modules

  • Writing NixOS Modules
  • Option Declarations
  • Options Types
  • Option Definitions
  • Warnings and Assertions
  • Meta Attributes
  • Importing Modules
  • Replace Modules
  • Freeform modules
  • Options for Program Settings
  • State revision

NixOS Tests

  • NixOS Tests
  • Writing Tests
  • Running Tests
  • Running Tests interactively
  • Linking NixOS tests to packages
  • Testing Hardware Features
  • Building Specific Parts of NixOS
  • Developing the NixOS Test Driver
  • Testing the Installer
  • Writing NixOS Documentation
  • Contributing to this manual

Configuration Options

  • Configuration Options
    • boot
    • containers
    • documentation
    • environment
    • fonts
    • hardware
    • i18n
    • image
    • networking
    • nix
    • power
    • programs
    • security
    • system
    • systemd
    • users
    • virtualisation
    • xdg
    • services (A)
    • services (B)
    • services (C)
    • services (D)
    • services (E)
    • services (F)
    • services (G)
    • services (H)
    • services (I)
    • services (J)
    • services (K)
    • services (L)
    • services (M)
    • services (N)
    • services (O)
    • services (other)
    • services (P)
    • services (Q)
    • services (R)
    • services (S)
    • services (T)
    • services (U)
    • services (V)
    • services (W)
    • services (X)
    • services (Y)
    • services (Z)
    • Other options

Release Notes

  • Release Notes
    • Release 27.05 ("Axolotl", 2027.05/??)
    • Release 26.11 ("Zokor", 2026.11/??)
    • Release 26.05 ("Yarara", 2026.05/30)
    • Release 25.11 ("Xantusia", 2025.11/30)
    • Release 25.05 (“Warbler”, 2025.05/23)
    • Release 24.11 (“Vicuña”, 2024.11/28)
    • Release 24.05 (“Uakari”, 2024.05/31)
    • Release 23.11 (“Tapir”, 2023.11/29)
    • Release 23.05 (“Stoat”, 2023.05/31)
    • Release 22.11 (“Raccoon”, 2022.11/30)
    • Release 22.05 (“Quokka”, 2022.05/30)
    • Release 21.11 (“Porcupine”, 2021/11/30)
    • Release 21.05 ("Okapi", 2021.05/31)
    • Release 20.09 ("Nightingale", 2020.10/27)
    • Release 20.03 ("Markhor", 2020.04/20)
    • Release 19.09 ("Loris", 2019/10/09)
    • Release 19.03 ("Koi", 2019/04/11)
    • Release 18.09 ("Jellyfish", 2018/10/05)
    • Release 18.03 ("Impala", 2018/04/04)
    • Release 17.09 ("Hummingbird", 2017/09/??)
    • Release 17.03 ("Gorilla", 2017/03/31)
    • Release 16.09 ("Flounder", 2016/09/30)
    • Release 16.03 ("Emu", 2016/03/31)
    • Release 15.09 ("Dingo", 2015/09/30)
    • Release 14.12 ("Caterpillar", 2014/12/30)
    • Release 14.04 ("Baboon", 2014/04/30)
    • Release 13.10 ("Aardvark", 2013/10/31)

Release 13.10 ("Aardvark", 2013/10/31)

This is the first stable release branch of NixOS.

PreviousRelease 14.04 ("Baboon", 2014/04/30)