nixos/assertions: remove with lib;

This commit is contained in:
Felix Buehler 2024-08-30 00:46:30 +02:00
parent 387be4f6c3
commit 650b7695e0

View file

@ -1,13 +1,10 @@
{ lib, ... }: { lib, ... }:
with lib;
{ {
options = { options = {
assertions = mkOption { assertions = lib.mkOption {
type = types.listOf types.unspecified; type = lib.types.listOf lib.types.unspecified;
internal = true; internal = true;
default = []; default = [];
example = [ { assertion = false; message = "you can't enable this for that reason"; } ]; example = [ { assertion = false; message = "you can't enable this for that reason"; } ];
@ -18,10 +15,10 @@ with lib;
''; '';
}; };
warnings = mkOption { warnings = lib.mkOption {
internal = true; internal = true;
default = []; default = [];
type = types.listOf types.str; type = lib.types.listOf lib.types.str;
example = [ "The `foo' service is deprecated and will go away soon!" ]; example = [ "The `foo' service is deprecated and will go away soon!" ];
description = '' description = ''
This option allows modules to show warnings to users during This option allows modules to show warnings to users during