MyNixOS website logo
option

system.preSwitchChecks

A set of shell script fragments that are executed before the switch to a new NixOS system configuration. A failure in any of these fragments will cause the switch to fail and exit early.

Declarations
Type
attribute set of string
Default
{ }
Example
{ failsEveryTime =
  ''
    false
  '';
}