nixos/home-assistant: allow null config value
While the documentation said to set this to null, in case an imperative
config was supposed to be used, this was not possible with the typing in
place.
commit1090fcb7c937e6659f93ffbd7794e9f57de71e42
authorMartin Weinelt <hexa@darmstadt.ccc.de>
dateTue 22 Feb 2022, 12:04 (5 years ago)
parent38346f6
nixos/modules/services/home-automation/home-assistant.nix+2−2
@@ -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 = {