summary refs log tree commit diff
path: root/nixos/modules/services/home-automation
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 /nixos/modules/services/home-automation
parent42c09098485931abe5051021fb6986fe6f8fa072 (diff)
downloadnixpkgs-5aabba490e4a6001b9bda3f485210cdbec7e2d28.tar
nixpkgs-5aabba490e4a6001b9bda3f485210cdbec7e2d28.tar.gz
nixpkgs-5aabba490e4a6001b9bda3f485210cdbec7e2d28.tar.bz2
nixpkgs-5aabba490e4a6001b9bda3f485210cdbec7e2d28.tar.lz
nixpkgs-5aabba490e4a6001b9bda3f485210cdbec7e2d28.tar.xz
nixpkgs-5aabba490e4a6001b9bda3f485210cdbec7e2d28.tar.zst
nixpkgs-5aabba490e4a6001b9bda3f485210cdbec7e2d28.zip
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.
Diffstat (limited to 'nixos/modules/services/home-automation')
-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 fc8ce08b2e1..79368416d71 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 = ''