summary refs log tree commit diff
path: root/nixos
diff options
context:
space:
mode:
authorMartin Weinelt <mweinelt@users.noreply.github.com>2021-03-06 19:26:20 +0100
committerGitHub <noreply@github.com>2021-03-06 19:26:20 +0100
commitb349460dd860b59b472c90f9b9b8f29faf488968 (patch)
tree7b0be5ff510b4aa967494da73c4a72d3b9b4110e /nixos
parenta621f0105ccea6697d9856c025effc8c2cc0f33b (diff)
parent6ed2bd99376c7139cdca30a3073c42e720676e9f (diff)
downloadnixpkgs-b349460dd860b59b472c90f9b9b8f29faf488968.tar
nixpkgs-b349460dd860b59b472c90f9b9b8f29faf488968.tar.gz
nixpkgs-b349460dd860b59b472c90f9b9b8f29faf488968.tar.bz2
nixpkgs-b349460dd860b59b472c90f9b9b8f29faf488968.tar.lz
nixpkgs-b349460dd860b59b472c90f9b9b8f29faf488968.tar.xz
nixpkgs-b349460dd860b59b472c90f9b9b8f29faf488968.tar.zst
nixpkgs-b349460dd860b59b472c90f9b9b8f29faf488968.zip
Merge pull request #115016 from mweinelt/home-assistant
Diffstat (limited to 'nixos')
-rw-r--r--nixos/modules/services/misc/home-assistant.nix12
-rw-r--r--nixos/tests/home-assistant.nix2
2 files changed, 11 insertions, 3 deletions
diff --git a/nixos/modules/services/misc/home-assistant.nix b/nixos/modules/services/misc/home-assistant.nix
index 1f2e13f3732..f53c49a1ee6 100644
--- a/nixos/modules/services/misc/home-assistant.nix
+++ b/nixos/modules/services/misc/home-assistant.nix
@@ -183,8 +183,14 @@ in {
     };
 
     package = mkOption {
-      default = pkgs.home-assistant;
-      defaultText = "pkgs.home-assistant";
+      default = pkgs.home-assistant.overrideAttrs (oldAttrs: {
+        doInstallCheck = false;
+      });
+      defaultText = literalExample ''
+        pkgs.home-assistant.overrideAttrs (oldAttrs: {
+          doInstallCheck = false;
+        })
+      '';
       type = types.package;
       example = literalExample ''
         pkgs.home-assistant.override {
@@ -192,7 +198,7 @@ in {
         }
       '';
       description = ''
-        Home Assistant package to use.
+        Home Assistant package to use. By default the tests are disabled, as they take a considerable amout of time to complete.
         Override <literal>extraPackages</literal> or <literal>extraComponents</literal> in order to add additional dependencies.
         If you specify <option>config</option> and do not set <option>autoExtraComponents</option>
         to <literal>false</literal>, overriding <literal>extraComponents</literal> will have no effect.
diff --git a/nixos/tests/home-assistant.nix b/nixos/tests/home-assistant.nix
index 131f50747fe..726c7eb6acb 100644
--- a/nixos/tests/home-assistant.nix
+++ b/nixos/tests/home-assistant.nix
@@ -24,6 +24,8 @@ in {
     services.home-assistant = {
       inherit configDir;
       enable = true;
+      # includes the package with all tests enabled
+      package = pkgs.home-assistant;
       config = {
         homeassistant = {
           name = "Home";