Module
These are the available NixOS module options for nixos-cli. This is the
preferred way to configure things like settings, and to add the CLI itself to
the $PATH.
services.nixos-cli.config
Configuration for nixos-cli, in TOML format
Type: TOML value
Default: { }
services.nixos-cli.enable
Whether to enable unified NixOS tooling replacement for nixos-* utilities.
Type: boolean
Default: false
Example: true
services.nixos-cli.package
Package to use for nixos-cli
Type: package
Default: <derivation nixos-cli-0.15.0-dev>
services.nixos-cli.prebuildOptionCache
Prebuild JSON cache for nixos option command
Type: boolean
Default: true
services.nixos-cli.useActivationInterface
Use the nixos activate interface to switch configurations, instead of the
switch-to-configuration-ng program that is currently used in nixpkgs.
The behavior is mostly the same, but changes can be made that may potentially break behavior from the original on a per-case basis.
If this is disabled, users will still be able to use nixos activate on their
own, but it will serve solely as a shim to run the switch script on a switchable.
system.
This activation interface is experimental and subject to change.
Type: boolean
Default: false
Example: true