mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-07-09 12:05:50 +03:00
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.
This commit is contained in:
parent
38346f6461
commit
1090fcb7c9
1 changed files with 2 additions and 2 deletions
|
@ -135,7 +135,7 @@ in {
|
||||||
};
|
};
|
||||||
|
|
||||||
config = mkOption {
|
config = mkOption {
|
||||||
type = types.submodule {
|
type = types.nullOr (types.submodule {
|
||||||
freeformType = format.type;
|
freeformType = format.type;
|
||||||
options = {
|
options = {
|
||||||
# This is a partial selection of the most common options, so new users can quickly
|
# This is a partial selection of the most common options, so new users can quickly
|
||||||
|
@ -244,7 +244,7 @@ in {
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
});
|
||||||
example = literalExpression ''
|
example = literalExpression ''
|
||||||
{
|
{
|
||||||
homeassistant = {
|
homeassistant = {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue