Build NixOS System
Build the NixOS system configuration.
Run this command
nix \
--extra-experimental-features flakes \
--extra-experimental-features nix-command \
--extra-experimental-features pipe-operators \
--verbose \
build \
--print-build-logs \
.#nixosConfigurations.machine.config.system.build.toplevel
Or use the script:
./scripts/build-system
What it does
- Evaluates the NixOS configuration
- Compiles all system packages and configurations
- Creates a
resultsymlink to the built system profile
Next steps
- After building, use
/switch-to-configuration-testto test changes (temporary) - Or use
/switch-to-configurationto apply permanently