Skip to content

Commit

Permalink
nixos/home-assistant: allow null config value
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
mweinelt committed Feb 22, 2022
1 parent 38346f6 commit 1090fcb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions nixos/modules/services/home-automation/home-assistant.nix
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ in {
};

config = mkOption {
type = types.submodule {
type = types.nullOr (types.submodule {
freeformType = format.type;
options = {
# This is a partial selection of the most common options, so new users can quickly
Expand Down Expand Up @@ -244,7 +244,7 @@ in {
};
};
};
};
});
example = literalExpression ''
{
homeassistant = {
Expand Down

0 comments on commit 1090fcb

Please sign in to comment.