Specialisation: Difference between revisions
imported>Benjaminl Mention the --specialisation flag for nixos-rebuild |
imported>Keksgesicht mNo edit summary |
||
| Line 65: | Line 65: | ||
== Runtime activation == | == Runtime activation == | ||
Taking the <code>chani</code> specialisation from our example, we can activate it at runtime (comparable to <code>nixos-rebuild switch</code>), by running <code>/nix/var/nix/profiles/system/specialisation/chani/bin/switch-to-configuration switch</code>. <code>nixos-rebuild switch</code> also supports a <code>-- | Taking the <code>chani</code> specialisation from our example, we can activate it at runtime (comparable to <code>nixos-rebuild switch</code>), by running <code>/nix/var/nix/profiles/system/specialisation/chani/bin/switch-to-configuration switch</code>. <code>nixos-rebuild switch</code> also supports a <code>--specialisation</code> flag, which we can use like this: <code>nixos-rebuild switch --specialisation chani</code>. | ||
== Further reading == | == Further reading == | ||