From 5aabba490e4a6001b9bda3f485210cdbec7e2d28 Mon Sep 17 00:00:00 2001 From: Martin Weinelt Date: Fri, 28 Jan 2022 22:55:27 +0100 Subject: [PATCH] nixos/home-assistant: update default package example The given example is now closer to a sane default people will want to start with. It also displays the existance of extraComponents, a feature that will receive more usage with home-assistant warning about components that have completely migrated away from YAML configuration. --- .../modules/services/home-automation/home-assistant.nix | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/nixos/modules/services/home-automation/home-assistant.nix b/nixos/modules/services/home-automation/home-assistant.nix index fc8ce08b2e13..79368416d710 100644 --- a/nixos/modules/services/home-automation/home-assistant.nix +++ b/nixos/modules/services/home-automation/home-assistant.nix @@ -201,7 +201,14 @@ in { type = types.package; example = literalExpression '' pkgs.home-assistant.override { - extraPackages = ps: with ps; [ colorlog ]; + extraPackages = python3Packages: with python3Packages; [ + psycopg2 + ]; + extraComponents = [ + "default_config" + "esphome" + "met" + ]; } ''; description = ''