Home Explore Blog Models CI



nixpkgs

pkgs/servers/home-assistant/custom-lovelace-modules/README.md
be9b04e462777cf19d0b18462a80689ebe229240e4fb77390000000300000141
# Packaging guidelines

## Entrypoint

Every lovelace module has an entrypoint in the form of a `.js` file. By
default the nixos module will try to load `${pname}.js` when a module is
configured.

The entrypoint used can be overridden in `passthru` like this:

```nix
{ passthru.entrypoint = "demo-card-bundle.js"; }
```

Chunks
b9675487 (1st chunk of `pkgs/servers/home-assistant/custom-lovelace-modules/README.md`)
Title: Lovelace Module Entrypoint Packaging Guidelines
Summary
Every Lovelace module requires a `.js` file as its entrypoint, which defaults to `${pname}.js` when configured via the NixOS module. Users can override this default entrypoint by specifying a different filename in the `passthru.entrypoint` attribute.