nixos/home-automation: really fix lovelace card entrypoint

This commit is contained in:
Zhong Jianxin 2023-12-10 19:12:55 +08:00
parent 2873a73123
commit b097e95193

View file

@ -75,7 +75,7 @@ let
# Create parts of the lovelace config that reference lovelave modules as resources
customLovelaceModulesResources = {
lovelace.resources = map (card: {
url = "/local/nixos-lovelace-modules/${card.entrypoint or card.pname + ".js"}?${card.version}";
url = "/local/nixos-lovelace-modules/${card.entrypoint or (card.pname + ".js")}?${card.version}";
type = "module";
}) cfg.customLovelaceModules;
};