diff options
author | Martin Weinelt <mweinelt@users.noreply.github.com> | 2024-06-23 22:24:14 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-06-23 22:24:14 +0200 |
commit | 242807e0e7eb222d292149684c9c3b1fcaafbf19 (patch) | |
tree | 7b8c35b0e9e61715b69d16d2a269c044fb285a54 /nixos/modules/services | |
parent | e0ba5d6aaf27ed0deb1ad168bd151a6fd23634f1 (diff) | |
parent | 66adc9c5d1f9eeec23fbd754ecc44c42de06a13f (diff) |
Merge pull request #322011 from kkoniuszy/add-home-assistant-custom-components-spook
home-assistant-custom-components.spook: init at 3.0.1
Diffstat (limited to 'nixos/modules/services')
-rw-r--r-- | nixos/modules/services/home-automation/home-assistant.nix | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/nixos/modules/services/home-automation/home-assistant.nix b/nixos/modules/services/home-automation/home-assistant.nix index d94adfb4aa1c..c58a31539ed8 100644 --- a/nixos/modules/services/home-automation/home-assistant.nix +++ b/nixos/modules/services/home-automation/home-assistant.nix @@ -518,8 +518,9 @@ in { # recreate symlinks for desired components declare -a components=(${escapeShellArgs cfg.customComponents}) for component in "''${components[@]}"; do - path="$(dirname $(find "$component" -name "manifest.json"))" - ln -fns "$path" "${cfg.configDir}/custom_components/" + readarray -t manifests < <(find "$component" -name manifest.json) + readarray -t paths < <(dirname "''${manifests[@]}") + ln -fns "''${paths[@]}" "${cfg.configDir}/custom_components/" done ''; in |