Keyboard shortcuts

Press ← or → to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Applying Configurations

NixOS configurations

Applying NixOS configurations on an existing NixOS system is straightforward.

nixos-rebuild switch --sudo --flake .#<host>

Home Manager configurations

Home Manager configurations are provided for each user listed in the host’s users.nix module.

home-manager switch -b backup --flake .#<user>@<host>

NixOS and Home Manager configurations for all users

NixOS configurations with the -homes suffix apply both the NixOS configuration and Home Manager configurations for all users listed in the host’s users.nix module.

nixos-rebuild switch --sudo --flake .#<host>-homes