9 assertions = mkOption {
10 type = types.listOf types.unspecified;
13 example = [ { assertion = false; message = "you can't enable this for that reason"; } ];
15 This option allows modules to express conditions that must
16 hold for the evaluation of the system configuration to
17 succeed, along with associated error messages for the user.
24 type = types.listOf types.str;
25 example = [ "The `foo' service is deprecated and will go away soon!" ];
27 This option allows modules to show warnings to users during
28 the evaluation of the system configuration.
33 # impl of assertions is in <nixpkgs/nixos/modules/system/activation/top-level.nix>