Home Explore Blog CI



nixpkgs

1st chunk of `pkgs/servers/home-assistant/custom-lovelace-modules/README.md`
79eee18f920ef93dd0349fdc1a9ddc083882d7fe7a4109bd0000000100000143
# 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: 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.