diff options
author | Martin Weinelt <mweinelt@users.noreply.github.com> | 2024-02-11 04:35:53 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-02-11 04:35:53 +0100 |
commit | 18899b0c58737d0e0a8705018bf3144854090859 (patch) | |
tree | 152f725a9850716a2de8c8e7219532e59b30dfa2 /nixos | |
parent | 6eeca8c96f94d82ebbd95233c71bf29a567e6153 (diff) | |
parent | 055a8f709ad75bec0aa723e7b413a695d24d7e3a (diff) |
Merge pull request #287926 from mweinelt/home-assistant-2024.2.0-fixes
home-assistant: fixes for 2024.2.0
Diffstat (limited to 'nixos')
-rw-r--r-- | nixos/modules/services/home-automation/home-assistant.nix | 41 |
1 files changed, 40 insertions, 1 deletions
diff --git a/nixos/modules/services/home-automation/home-assistant.nix b/nixos/modules/services/home-automation/home-assistant.nix index 5c2ea8f1840bf..3423eebe9ed64 100644 --- a/nixos/modules/services/home-automation/home-assistant.nix +++ b/nixos/modules/services/home-automation/home-assistant.nix @@ -52,7 +52,7 @@ let hasAttrByPath (splitString "." component) cfg.config || useComponentPlatform component || useExplicitComponent component - || builtins.elem component cfg.extraComponents; + || builtins.elem component (cfg.extraComponents ++ cfg.defaultIntegrations); # Final list of components passed into the package to include required dependencies extraComponents = filter useComponent availableComponents; @@ -103,6 +103,45 @@ in { description = lib.mdDoc "The config directory, where your {file}`configuration.yaml` is located."; }; + defaultIntegrations = mkOption { + type = types.listOf (types.enum availableComponents); + # https://github.com/home-assistant/core/blob/dev/homeassistant/bootstrap.py#L109 + default = [ + "application_credentials" + "frontend" + "hardware" + "logger" + "network" + "system_health" + + # key features + "automation" + "person" + "scene" + "script" + "tag" + "zone" + + # built-in helpers + "counter" + "input_boolean" + "input_button" + "input_datetime" + "input_number" + "input_select" + "input_text" + "schedule" + "timer" + + # non-supervisor + "backup" + ]; + readOnly = true; + description = '' + List of integrations set are always set up, unless in recovery mode. + ''; + }; + extraComponents = mkOption { type = types.listOf (types.enum availableComponents); default = [ |