Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

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.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: types.package

Default:

if useFlakePkg
then self.packages.${pkgs.system}.nixos
else self.packages.${pkgs.system}.nixosLegacy

services.nixos-cli.config

Configuration for nixos-cli, in TOML format

Type: tomlFormat.type

Default: {}

services.nixos-cli.generationTag

A description for this generation

Type: types.nullOr types.str

Default: lib.maybeEnv "NIXOS_GENERATION_TAG" null

Example: "Sign Git GPG commits by default"

services.nixos-cli.prebuildOptionCache

Prebuild JSON cache for nixos option command

Type: types.bool

Default: config.documentation.nixos.enable


Generated with nix-options-doc