git.iko.soy/typeable/nixpkgs
on master help sign in
Merge pull request #161351: nixos/home-assistant: module updates
commitaf01434597b98e83107901343185a3905b49c0b1 authorpiegames <git@piegames.de> dateTue 22 Feb 2022, 22:47 (5 years ago) parent98e236a0dd8ef5
1 file changed+2−6
nixos/modules/services/home-automation/home-assistant.nix+2−6
nixos/modules/services/home-automation/home-assistant.nix+2−6
@@ -135,7 +135,7 @@ in {
135135 };
136136
137137 config = mkOption {
138− type = types.submodule {
138+ type = types.nullOr (types.submodule {
139139 freeformType = format.type;
140140 options = {
141141 # This is a partial selection of the most common options, so new users can quickly
@@ -244,7 +244,7 @@ in {
244244 };
245245 };
246246 };
247− };
247+ });
248248 example = literalExpression ''
249249 {
250250 homeassistant = {
@@ -349,10 +349,6 @@ in {
349349 '';
350350 description = ''
351351 The Home Assistant package to use.
352− Override <literal>extraPackages</literal> or <literal>extraComponents</literal> in order to add additional dependencies.
353− If you specify <option>config</option> and do not set <option>autoExtraComponents</option>
354− to <literal>false</literal>, overriding <literal>extraComponents</literal> will have no effect.
355− Avoid <literal>home-assistant.overridePythonAttrs</literal> if you use <literal>autoExtraComponents</literal>.
356352 '';
357353 };
358354