1{lib, ...}: let2 inherit (lib) mkOption;3 inherit (lib.types) listOf unspecified str;4in {5 options = {6 assertions = mkOption {7 type = listOf unspecified;8 internal = true;9 default = [];10 example = [11 {12 assertion = false;13 message = "you can't enable this for that reason";14 }15 ];16 description = ''17 This option allows modules to express conditions that must18 hold for the evaluation of the system configuration to19 succeed, along with associated error messages for the user.20 '';21 };2223 warnings = mkOption {24 internal = true;25 default = [];26 type = listOf str;27 example = ["The `foo' service is deprecated and will go away soon!"];28 description = ''29 This option allows modules to show warnings to users during30 the evaluation of the system configuration.31 '';32 };33 };34 35}