|
| 1 | +NIXOS-CLI-ACTIVATE(1) |
| 2 | + |
| 3 | +# NAME |
| 4 | + |
| 5 | +nixos activate - run activation routines for a NixOS system |
| 6 | + |
| 7 | +# SYNOPSIS |
| 8 | + |
| 9 | +*nixos activate* <ACTION> [options] |
| 10 | + |
| 11 | +# DESCRIPTION |
| 12 | + |
| 13 | +Run activation routines for a given NixOS system. |
| 14 | + |
| 15 | +This command handles migrating (switching) between built NixOS configurations, |
| 16 | +built from a NixOS configuration's _config.system.build.toplevel_ build output. |
| 17 | + |
| 18 | +If ran directly by a user, the switch script, located at |
| 19 | +_/run/current-system/bin/switch-to-configuration_, will be executed. If using |
| 20 | +the activation interface NixOS module, this calls back out to _nixos activate_ |
| 21 | +with the correct parameters for the given generation. |
| 22 | + |
| 23 | +This activation script is mostly backwards-compatible with the existing |
| 24 | +_switch-to-configuration-ng_ script that is provided in upstream _nixpkgs_. |
| 25 | + |
| 26 | +This is a low-level command, and should be regarded accordingly. |
| 27 | + |
| 28 | +# ARGUMENTS |
| 29 | + |
| 30 | +*ACTION* |
| 31 | + The activation routine to run. |
| 32 | + |
| 33 | + Can be exactly one of the following values: |
| 34 | + |
| 35 | + - *boot* - Generate boot entries and make this the default configuration |
| 36 | + - *check* - Run pre-activation checks and exit |
| 37 | + - *dry-activate* - Show what would be activated but do not perform it |
| 38 | + - *switch* - Activate this configuration, generate entries, and make this |
| 39 | + the default configuration |
| 40 | + - *test* - Activate this configuration, but do not generate boot entries |
| 41 | + |
| 42 | +# OPTIONS |
| 43 | + |
| 44 | +*-s*, *--specialisation* <NAME> |
| 45 | + Activate a specialisation *NAME* from the available specialisations. |
| 46 | + |
| 47 | + If none are provided, then the base configuration without specialisations |
| 48 | + is assumed. Check *nixos-cli-settings(5)* for more information. |
| 49 | + |
| 50 | + This is only available in user-direct invocation mode, to figure out which |
| 51 | + specialisation to use, and does not exist during actual activation mode. |
| 52 | + |
| 53 | +*-h*, *--help* |
| 54 | + Show the help message for this command. |
| 55 | + |
| 56 | +# SEE ALSO |
| 57 | + |
| 58 | +*nixos-cli-apply(1)* |
| 59 | + |
| 60 | +*nixos-cli-env*(5) |
| 61 | + |
| 62 | +# AUTHORS |
| 63 | + |
| 64 | +Maintained by the *nixos-cli* team. See the main man page *nixos-cli(1)* for |
| 65 | +details. |
0 commit comments