Home Explore Blog CI



nixpkgs

pkgs/servers/home-assistant/custom-lovelace-modules/README.md
a8c5ec962186b29f784eae8502aec0718cd44dd40f0fd1e20000000300000143
# 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
79eee18f (1st chunk of `pkgs/servers/home-assistant/custom-lovelace-modules/README.md`)
Title: Packaging Guidelines: Entrypoint
Summary
Every Lovelace module needs a JavaScript entrypoint file. By default, the NixOS module looks for a file named `${pname}.js`. You can override this default entrypoint by specifying a different filename in the `passthru.entrypoint` attribute within the Nix expression.