1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-11-20 04:31:52 +00:00

nixos/home-assistant: do not always override extraComponents (#43845)

Fixes #43843.
This commit is contained in:
Robert Schütz 2018-07-20 19:28:29 +02:00 committed by GitHub
parent 446ec6df2d
commit 55a12c9763
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -37,7 +37,7 @@ let
# List of components used in config
extraComponents = filter useComponent availableComponents;
package = if cfg.autoExtraComponents
package = if (cfg.autoExtraComponents && cfg.config != null)
then (cfg.package.override { inherit extraComponents; })
else cfg.package;
@ -110,7 +110,9 @@ in {
'';
description = ''
Home Assistant package to use.
Override <literal>extraPackages</literal> in order to add additional dependencies.
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.
'';
};