2023-11-16 04:20:00 +00:00
|
|
|
# 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
|
2024-04-21 15:54:59 +00:00
|
|
|
{
|
|
|
|
passthru.entrypoint = "demo-card-bundle.js";
|
|
|
|
}
|
2023-11-16 04:20:00 +00:00
|
|
|
```
|