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:
parent
1105437858
commit
a5f8d3fe02
2 changed files with 11 additions and 2 deletions
|
@ -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; [
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue