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

programs.nh.enable

Whether to enable nh, yet another Nix CLI helper.

Type: boolean

Default:

false

Example:

true

Declared by:

programs.nh.package

The nh package to use.

Type: package

Default:

pkgs.nh

Declared by:

programs.nh.clean.enable

Whether to enable periodic garbage collection for user profile and nix store with nh clean user.

Type: boolean

Default:

false

Example:

true

Declared by:

programs.nh.clean.dates

How often cleanup is performed.

On linux the format is described in systemd.time(7).

On Darwin, it must be one of: hourly, daily, weekly, monthly, semiannually, annually, which are implemented as defined in systemd.time(7).

Type: (optionally newline-terminated) single-line string

Default:

"weekly"

Declared by:

programs.nh.clean.extraArgs

Options given to nh clean when the service is run automatically.

A list is preferred, each element being one argument.

A string keeps its platform-specific meaning: on Linux it is command line text that systemd splits into arguments, on Darwin it is passed to nh as a single argument.

See nh clean all --help for more information.

Type: (optionally newline-terminated) single-line string or list of string

Default:

""

Example:

[
  "--keep"
  "5"
  "--keep-since"
  "3d"
]

Declared by:

programs.nh.darwinFlake

The string that will be used for the NH_DARWIN_FLAKE environment variable.

NH_DARWIN_FLAKE is used by nh as the default flake for performing nh darwin actions, such as nh darwin switch. Setting this will take priority over the flake option.

Type: null or (optionally newline-terminated) single-line string or absolute path

Default:

null

Declared by:

programs.nh.flake

The path that will be used for the FLAKE environment variable.

FLAKE is used by nh as the default flake for performing actions, like nh os switch.

Type: null or (optionally newline-terminated) single-line string or absolute path

Default:

null

Declared by:

programs.nh.homeFlake

The string that will be used for the NH_HOME_FLAKE environment variable.

NH_HOME_FLAKE is used by nh as the default flake for performing nh home actions, such as nh home switch. Setting this will take priority over the flake option.

Type: null or (optionally newline-terminated) single-line string or absolute path

Default:

null

Declared by:

programs.nh.osFlake

The string that will be used for the NH_OS_FLAKE environment variable.

NH_OS_FLAKE is used by nh as the default flake for performing nh os actions, such as nh os switch. Setting this will take priority over the flake option.

Type: null or (optionally newline-terminated) single-line string or absolute path

Default:

null

Declared by: