Home Explore Blog Models CI



nixpkgs

1st chunk of `pkgs/servers/home-assistant/custom-lovelace-modules/README.md`
b967548721ce59aa2313fe4339b49ba1d9caed0e4fc55ed80000000100000141
# 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"; }
```

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.