Skip to content

darwin

programs.nh.enable

Whether to enable nh-darwin, yet another Nix CLI helper. Works on NixOS, NixDarwin, and HomeManager Standalone.

Type: boolean

Default: false

Example: true

programs.nh.package

The nh package to use.

Type: package

Default: pkgs.nh

programs.nh.clean.enable

Whether to enable periodic garbage collection with nh-darwin clean all.

Type: boolean

Default: false

Example: true

programs.nh.clean.dates

How often cleanup is performed. Passed to launchd.StartCalendarInterval

The format is described in crontab(5).

Type: attribute set

Default:

{
  Weekday = 0;
}

programs.nh.clean.extraArgs

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

See nh-darwin clean all --help for more information.

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

Default: ""

Example: "--keep 5 --keep-since 3d"

programs.nh.clean.user

User that runs the garbage collector.

Type: null or string

Default: null

programs.nh.flake

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

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

Type: null or path

Default: null