From 4e92408750da94224fe60e3caa8d058b030e6c9a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sandro=20J=C3=A4ckel?= Date: Fri, 8 May 2026 00:26:56 +0200 Subject: [PATCH] nixos/home-assistant: only add ping to path when it is required --- nixos/modules/services/home-automation/home-assistant.nix | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/nixos/modules/services/home-automation/home-assistant.nix b/nixos/modules/services/home-automation/home-assistant.nix index 427c1b641900..6de14687cfae 100644 --- a/nixos/modules/services/home-automation/home-assistant.nix +++ b/nixos/modules/services/home-automation/home-assistant.nix @@ -1043,9 +1043,7 @@ in ]; UMask = "0077"; }; - path = [ - pkgs.unixtools.ping # needed for ping - ]; + path = with pkgs; lib.optionals (any useComponent componentsUsingPing) [ unixtools.ping ]; }; systemd.targets.home-assistant = rec {