diff options
author | aszlig <aszlig@redmoonstudios.org> | 2015-12-11 11:06:16 +0100 |
---|---|---|
committer | aszlig <aszlig@redmoonstudios.org> | 2015-12-11 11:06:16 +0100 |
commit | 42fdbfd5144e38118732aee43be4b8102114bb92 (patch) | |
tree | ce645a9c8521efb5565d7827756c61f6ff7faeca /modules | |
parent | 745167880820303fc774776136899378768ddfe7 (diff) |
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 <aszlig@redmoonstudios.org>
Diffstat (limited to 'modules')
-rw-r--r-- | modules/profiles/tests.nix | 3 |
1 files changed, 2 insertions, 1 deletions
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; |