From 650b7695e0b7e7ea18e547d97d3041a65ff6a170 Mon Sep 17 00:00:00 2001 From: Felix Buehler Date: Fri, 30 Aug 2024 00:46:30 +0200 Subject: [PATCH] nixos/assertions: remove `with lib;` --- nixos/modules/misc/assertions.nix | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/nixos/modules/misc/assertions.nix b/nixos/modules/misc/assertions.nix index 550b3ac97f6a..489a2b8085ae 100644 --- a/nixos/modules/misc/assertions.nix +++ b/nixos/modules/misc/assertions.nix @@ -1,13 +1,10 @@ { lib, ... }: - -with lib; - { options = { - assertions = mkOption { - type = types.listOf types.unspecified; + assertions = lib.mkOption { + type = lib.types.listOf lib.types.unspecified; internal = true; default = []; 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; default = []; - type = types.listOf types.str; + type = lib.types.listOf lib.types.str; example = [ "The `foo' service is deprecated and will go away soon!" ]; description = '' This option allows modules to show warnings to users during