Skip to content

Commit 3cb8340

Browse files
authoredApr 11, 2021
Revert "nixos/home-assistant: use override before overridePythonAttrs"
1 parent 62ce5aa commit 3cb8340

File tree

1 file changed

+8
-11
lines changed

1 file changed

+8
-11
lines changed
 

Diff for: ‎nixos/modules/services/misc/home-assistant.nix

+8-11
Original file line numberDiff line numberDiff line change
@@ -50,15 +50,10 @@ let
5050
# List of components used in config
5151
extraComponents = filter useComponent availableComponents;
5252

53-
testedPackage = if (cfg.autoExtraComponents && cfg.config != null)
53+
package = if (cfg.autoExtraComponents && cfg.config != null)
5454
then (cfg.package.override { inherit extraComponents; })
5555
else cfg.package;
5656

57-
# overridePythonAttrs has to be applied after override
58-
package = testedPackage.overridePythonAttrs (oldAttrs: {
59-
doCheck = false;
60-
});
61-
6257
# If you are changing this, please update the description in applyDefaultConfig
6358
defaultConfig = {
6459
homeassistant.time_zone = config.time.timeZone;
@@ -188,9 +183,13 @@ in {
188183
};
189184

190185
package = mkOption {
191-
default = pkgs.home-assistant;
186+
default = pkgs.home-assistant.overridePythonAttrs (oldAttrs: {
187+
doCheck = false;
188+
});
192189
defaultText = literalExample ''
193-
pkgs.home-assistant
190+
pkgs.home-assistant.overridePythonAttrs (oldAttrs: {
191+
doCheck = false;
192+
})
194193
'';
195194
type = types.package;
196195
example = literalExample ''
@@ -199,12 +198,10 @@ in {
199198
}
200199
'';
201200
description = ''
202-
Home Assistant package to use. Tests are automatically disabled, as they take a considerable amout of time to complete.
201+
Home Assistant package to use. By default the tests are disabled, as they take a considerable amout of time to complete.
203202
Override <literal>extraPackages</literal> or <literal>extraComponents</literal> in order to add additional dependencies.
204203
If you specify <option>config</option> and do not set <option>autoExtraComponents</option>
205204
to <literal>false</literal>, overriding <literal>extraComponents</literal> will have no effect.
206-
Avoid <literal>home-assistant.overridePythonAttrs</literal> if you use
207-
<literal>autoExtraComponents</literal>.
208205
'';
209206
};
210207

0 commit comments

Comments
 (0)