summary refs log tree commit diff
path: root/nixos/modules/misc
diff options
context:
space:
mode:
authorSilvan Mosberger <github@infinisil.com>2020-12-18 16:42:42 +0100
committerSilvan Mosberger <github@infinisil.com>2020-12-18 16:44:37 +0100
commit9e6737710c4fb2613850e699178b23d54f1a3261 (patch)
tree9ba4d7163707bbc92e8a5917680426b0a01836f4 /nixos/modules/misc
parentfd1cc29974de2255d407a706f23aacdfb76f543b (diff)
downloadnixpkgs-9e6737710c4fb2613850e699178b23d54f1a3261.tar
nixpkgs-9e6737710c4fb2613850e699178b23d54f1a3261.tar.gz
nixpkgs-9e6737710c4fb2613850e699178b23d54f1a3261.tar.bz2
nixpkgs-9e6737710c4fb2613850e699178b23d54f1a3261.tar.lz
nixpkgs-9e6737710c4fb2613850e699178b23d54f1a3261.tar.xz
nixpkgs-9e6737710c4fb2613850e699178b23d54f1a3261.tar.zst
nixpkgs-9e6737710c4fb2613850e699178b23d54f1a3261.zip
Revert "Module-builtin assertions, disabling assertions and submodule assertions"
Diffstat (limited to 'nixos/modules/misc')
-rw-r--r--nixos/modules/misc/assertions.nix15
1 files changed, 1 insertions, 14 deletions
diff --git a/nixos/modules/misc/assertions.nix b/nixos/modules/misc/assertions.nix
index d7cdb32491d..550b3ac97f6 100644
--- a/nixos/modules/misc/assertions.nix
+++ b/nixos/modules/misc/assertions.nix
@@ -1,4 +1,4 @@
-{ lib, config, ... }:
+{ lib, ... }:
 
 with lib;
 
@@ -30,18 +30,5 @@ with lib;
     };
 
   };
-
-  config._module.checks = lib.listToAttrs (lib.imap1 (n: value:
-    let
-      name = "_${toString n}";
-      isWarning = lib.isString value;
-      result = {
-        check = if isWarning then false else value.assertion;
-        type = if isWarning then "warning" else "error";
-        message = if isWarning then value else value.message;
-      };
-    in nameValuePair name result
-  ) (config.assertions ++ config.warnings));
-
   # impl of assertions is in <nixpkgs/nixos/modules/system/activation/top-level.nix>
 }