home-assistant-custom-*: make package sets extensible

Otherwise overriding them is difficult.
This commit is contained in:
Andrew Marshall
2026-02-07 23:34:03 -05:00
parent 00c21e4c93
commit 4b985c5245
+14 -8
View File
@@ -8333,16 +8333,22 @@ with pkgs;
buildHomeAssistantComponent = callPackage ../servers/home-assistant/build-custom-component { };
home-assistant-custom-components = recurseIntoAttrs (
lib.packagesFromDirectoryRecursive {
inherit (home-assistant.python.pkgs) callPackage;
directory = ../servers/home-assistant/custom-components;
}
lib.makeExtensible (
self:
lib.packagesFromDirectoryRecursive {
inherit (home-assistant.python.pkgs) callPackage;
directory = ../servers/home-assistant/custom-components;
}
)
);
home-assistant-custom-lovelace-modules = recurseIntoAttrs (
lib.packagesFromDirectoryRecursive {
inherit callPackage;
directory = ../servers/home-assistant/custom-lovelace-modules;
}
lib.makeExtensible (
self:
lib.packagesFromDirectoryRecursive {
inherit callPackage;
directory = ../servers/home-assistant/custom-lovelace-modules;
}
)
);
home-assistant-cli = callPackage ../servers/home-assistant/cli.nix { };