Skip to content

Specialisation

Specialisation

specialisation

Additional configurations to build. If inheritParentConfig is true, the system will be based on the overall system configuration.

To switch to a specialised configuration (e.g. fewJobsManyCores) at runtime, run:

sudo /run/current-system/specialisation/fewJobsManyCores/bin/switch-to-configuration test

Type: attribute set of (submodule)

Default

{ }

Example

{ fewJobsManyCores.configuration = { nix.settings = { core = 0; max-jobs = 1; }; }; }

Declared by: https://github.com/nixos/nixpkgs/blob/master/nixos/modules/system/activation/specialisation.nix

specialisation.<name>.configuration

Arbitrary NixOS configuration.

Anything you can add to a normal NixOS configuration, you can add here, including imports and config values, although nested specialisations will be ignored.

Type: submodule

Default

{ }

Declared by: https://github.com/nixos/nixpkgs/blob/master/nixos/modules/system/activation/specialisation.nix

specialisation.<name>.inheritParentConfig

Include the entire system's configuration. Set to false to make a completely differently configured system. Type: boolean

Default

true

Declared by: https://github.com/nixos/nixpkgs/blob/master/nixos/modules/system/activation/specialisation.nix