about summary refs log tree commit diff
diff options
context:
space:
mode:
authorMartin Weinelt <hexa@darmstadt.ccc.de>2022-01-28 22:55:27 +0100
committerMartin Weinelt <hexa@darmstadt.ccc.de>2022-02-15 23:15:16 +0100
commit5aabba490e4a6001b9bda3f485210cdbec7e2d28 (patch)
treec823279413f6de3a5def014f714f38b08a791fa8
parent42c09098485931abe5051021fb6986fe6f8fa072 (diff)
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.
-rw-r--r--nixos/modules/services/home-automation/home-assistant.nix9
1 files changed, 8 insertions, 1 deletions
diff --git a/nixos/modules/services/home-automation/home-assistant.nix b/nixos/modules/services/home-automation/home-assistant.nix
index fc8ce08b2e136..79368416d7106 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 = ''