Specialisation: Difference between revisions
Line 1: | Line 1: | ||
{{Expansion|Configuration with and for GRUB could use explaining here}} | {{Expansion|Configuration with and for GRUB could use explaining here}} | ||
Specialisations allow you to define variations of your | Specialisations allow you to define variations of your system configuration. For instance, if you don't usually use GPU, you might create a base system with your GPU disabled and create a dedicated specialization with Nvidia/AMD drivers installed - later, during boot, you can choose which configuration you want to boot into this time. | ||
== Config == | == Config == | ||
Line 57: | Line 55: | ||
</syntaxHighlight> | </syntaxHighlight> | ||
== | == Activating a specialization == | ||
After rebuilding your system, you can choose a specialisation during boot; but it's also possible to switch into a specialisation at runtime - following the example above, we'd run: | |||
<syntaxHighlight lang=console> | |||
$ nixos-rebuild switch --specialisation chani | |||
</syntaxHighlight> | |||
Note that not all configurations can be switched into at runtime - e.g. if your specialization uses a different kernel, switching into it will not actually reload the kernel (but if you were to restart your computer and pick the specialisation from the boot menu, the alternative kernel would get loaded). | |||
== Further reading == | == Further reading == |