StewOS
Source

programs.nh

Declared in modules/nix-darwin/nh.nix · 6 options

# programs.nh.clean.dates

How often cleanup is performed. Passed to launchd. The format is described in the nix-darwin option 'launchd.daemons..serviceConfig.StartCalendarInterval'.

Type
attribute set
Default
{
  Weekday = 0;
}
Declared in

# programs.nh.clean.enable

Whether to enable periodic garbage collection with nh clean all.

Type
boolean
Default
false
Example
true
Declared in

# programs.nh.clean.extraArgs

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

See nh clean all --help for more information.

Type
(optionally newline-terminated) single-line string
Default
""
Example
"--keep 5 --keep-since 3d"
Declared in

# programs.nh.enable

Whether to enable nh, yet another Nix CLI helper.

Type
boolean
Default
false
Example
true
Declared in

# programs.nh.flake

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

NH_FLAKE is used by nh as the default flake for performing actions, such as nh os switch. This behaviour can be overriden per-command with environment variables that will take priority.

  • NH_OS_FLAKE: will take priority for nh os commands.
  • NH_HOME_FLAKE: will take priority for nh home commands.
  • NH_DARWIN_FLAKE: will take priority for nh darwin commands.

The formerly valid FLAKE is now deprecated by nh, and will cause hard errors in future releases if NH_FLAKE is not set.

Type
null or absolute path
Default
null
Declared in
Set by

# programs.nh.package

The nh package to use.

Type
package
Default
pkgs.nh
Declared in