From 2f644fd3e6e0e553b2a215b832128dcd2332f61c Mon Sep 17 00:00:00 2001 From: Martin Weinelt Date: Sun, 30 Jan 2022 18:07:25 +0100 Subject: [PATCH] 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. --- nixos/modules/services/home-automation/home-assistant.nix | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/nixos/modules/services/home-automation/home-assistant.nix b/nixos/modules/services/home-automation/home-assistant.nix index 15aea7de902d..802a98b7c7df 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 '' [