1{lib, ...}:2with lib; {3 options = {4 assertions = mkOption {5 type = types.listOf types.unspecified;6 internal = true;7 default = [];8 example = [9 {10 assertion = false;11 message = "you can't enable this for that reason";12 }13 ];14 description = ''15 This option allows modules to express conditions that must16 hold for the evaluation of the system configuration to17 succeed, along with associated error messages for the user.18 '';19 };2021 warnings = mkOption {22 internal = true;23 default = [];24 type = types.listOf types.str;25 example = ["The `foo' service is deprecated and will go away soon!"];26 description = ''27 This option allows modules to show warnings to users during28 the evaluation of the system configuration.29 '';30 };31 };32 33}