0
0
Fork 0
mirror of https://github.com/NixOS/nixpkgs.git synced 2025-07-09 12:05:50 +03:00

nixos/home-assistant: customComponents must use buildHomeAssistantComponent

This commit is contained in:
Robert Schütz 2024-07-26 04:13:58 -07:00
parent 1105437858
commit a5f8d3fe02
2 changed files with 11 additions and 2 deletions

View file

@ -192,7 +192,12 @@ in {
};
customComponents = mkOption {
type = types.listOf types.package;
type = types.listOf (
types.addCheck types.package (p: p.isHomeAssistantComponent or false) // {
name = "home-assistant-component";
description = "package that is a Home Assistant component";
}
);
default = [];
example = literalExpression ''
with pkgs.home-assistant-custom-components; [