0
0
Fork 0
mirror of https://github.com/NixOS/nixpkgs.git synced 2025-07-13 13:40:28 +03:00

Merge pull request #81164 from Mic92/home-assistant

nixos/home-assistant: 0.104.3 -> 0.106.0
This commit is contained in:
Jörg Thalheim 2020-03-02 10:55:35 +00:00 committed by GitHub
commit 2c5ffb5c7a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
11 changed files with 1135 additions and 982 deletions

View file

@ -96,7 +96,20 @@ in {
config = mkOption {
default = null;
type = with types; nullOr attrs;
# Migrate to new option types later: https://github.com/NixOS/nixpkgs/pull/75584
type = with lib.types; let
valueType = nullOr (oneOf [
bool
int
float
str
(lazyAttrsOf valueType)
(listOf valueType)
]) // {
description = "Yaml value";
emptyValue.value = {};
};
in valueType;
example = literalExample ''
{
homeassistant = {