diff options
author | Martin Weinelt <hexa@darmstadt.ccc.de> | 2022-01-30 18:07:25 +0100 |
---|---|---|
committer | Martin Weinelt <hexa@darmstadt.ccc.de> | 2022-02-15 23:41:51 +0100 |
commit | 2f644fd3e6e0e553b2a215b832128dcd2332f61c (patch) | |
tree | 60bed5e1b94bbe6be65cf5cc548a509e431bd56d /nixos | |
parent | 191fb818e61d3d3682bccaa9a867f082396488dc (diff) |
nixos/home-assistant: add rpi_power component by default on arm
The rpi_power integration is part of the onboarding flow on Raspberry Pi SBCs.
Diffstat (limited to 'nixos')
-rw-r--r-- | nixos/modules/services/home-automation/home-assistant.nix | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/nixos/modules/services/home-automation/home-assistant.nix b/nixos/modules/services/home-automation/home-assistant.nix index 15aea7de902df..802a98b7c7df1 100644 --- a/nixos/modules/services/home-automation/home-assistant.nix +++ b/nixos/modules/services/home-automation/home-assistant.nix @@ -92,6 +92,10 @@ in { "default_config" "met" "esphome" + ] ++ optionals (pkgs.stdenv.hostPlatform.isAarch32 || pkgs.stdenv.hostPlatform.isAarch64) [ + # Use the platform as an indicator that we might be running on a RaspberryPi and include + # relevant components + "rpi_power" ]; example = literalExpression '' [ |