summaryrefslogtreecommitdiffstats
path: root/nixos/modules/services/home-automation
diff options
context:
space:
mode:
authorZhong Jianxin <azuwis@gmail.com>2023-12-10 19:12:55 +0800
committerZhong Jianxin <azuwis@gmail.com>2023-12-10 19:12:55 +0800
commitb097e95193746184b0dbf32ebc0af79bd8852c66 (patch)
tree5896090b20a9f4bdd9ad686ca1f1fdf0a272f0db /nixos/modules/services/home-automation
parent2873a73123077953f3e6f34964466018876d87c4 (diff)
nixos/home-automation: really fix lovelace card entrypoint
Diffstat (limited to 'nixos/modules/services/home-automation')
-rw-r--r--nixos/modules/services/home-automation/home-assistant.nix2
1 files changed, 1 insertions, 1 deletions
diff --git a/nixos/modules/services/home-automation/home-assistant.nix b/nixos/modules/services/home-automation/home-assistant.nix
index 0a399e0774d1..8a469f7a015b 100644
--- a/nixos/modules/services/home-automation/home-assistant.nix
+++ b/nixos/modules/services/home-automation/home-assistant.nix
@@ -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;
};