about summary refs log tree commit diff
path: root/modules/core
diff options
context:
space:
mode:
authoraszlig <aszlig@nix.build>2018-04-29 14:36:57 +0200
committeraszlig <aszlig@nix.build>2018-04-29 14:36:57 +0200
commitcc88c41d333238db9363258b386bb5304fa81d58 (patch)
treeda3e195d036f0b08e67f2f6d98d348669c9356d9 /modules/core
parent98c906c9204e9f0769c742555a6b5913ee932ecc (diff)
core/tests: Add tests for Chromium and Firefox
While hasPackage is not yet very accurate when it comes to detecting
whether a package is in systemPackages (it only matches the name
attribute), let's make at least two of the most frequently used browsers
part of our machine specific tests.

Signed-off-by: aszlig <aszlig@nix.build>
Diffstat (limited to 'modules/core')
-rw-r--r--modules/core/tests.nix6
1 files changed, 6 insertions, 0 deletions
diff --git a/modules/core/tests.nix b/modules/core/tests.nix
index f095d9b1..dbf2b3ef 100644
--- a/modules/core/tests.nix
+++ b/modules/core/tests.nix
@@ -48,6 +48,9 @@ let
            || config.services.ceph.osd.enable;
       path  = ["nixos" "ceph"];
     }
+    { check = hasPackage pkgs.chromium;
+      path  = ["nixos" "chromium"];
+    }
     { check = config.services.cjdns.enable;
       path  = ["nixos" "cjdns"];
     }
@@ -137,6 +140,9 @@ let
     { check = config.services.ferm.enable;
       path  = ["nixos" "ferm"];
     }
+    { check = hasPackage pkgs.firefox;
+      path  = ["nixos" "firefox"];
+    }
     { check = config.networking.firewall.enable;
       path  = ["nixos" "firewall"];
     }