From 42fdbfd5144e38118732aee43be4b8102114bb92 Mon Sep 17 00:00:00 2001 From: aszlig Date: Fri, 11 Dec 2015 11:06:16 +0100 Subject: profiles/tests: Avoid scanning full linuxPackages. Using an equality test on an attribute set is actually a very bad idea, because it forces strict evaluation. In this case a simple test on the kernel version between the defined one and the available one should be sufficient. And if we have a false-positive in test inclusions it doesn't hurt anyway. Signed-off-by: aszlig --- modules/profiles/tests.nix | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'modules/profiles') diff --git a/modules/profiles/tests.nix b/modules/profiles/tests.nix index f258e67f..f2660663 100644 --- a/modules/profiles/tests.nix +++ b/modules/profiles/tests.nix @@ -106,7 +106,8 @@ let || proxy.enable; path = ["nixos" "kubernetes"]; } - { check = config.boot.kernelPackages == pkgs.linuxPackages_latest; + { check = config.boot.kernelPackages.kernel.version + == pkgs.linuxPackages_latest.kernel.version; path = ["nixos" "latestKernel" "login"]; } { check = true; -- cgit 1.4.1