about summary refs log tree commit diff
path: root/nixos/modules/services/home-automation
diff options
context:
space:
mode:
authorMartin Weinelt <hexa@darmstadt.ccc.de>2023-12-06 04:29:27 +0100
committerMartin Weinelt <hexa@darmstadt.ccc.de>2023-12-06 04:35:35 +0100
commitd809a6f9c30d6d7dd0a87025553c28067810edf0 (patch)
tree883d2eabf97694eb4db9ced827ac59bd93597a98 /nixos/modules/services/home-automation
parent80b0a35868f44f42d724fe059503c684a4e101b9 (diff)
nixos/home-automation: fix lovelace card entrypoint
Only append the .js extension to the card pname, not to the specified
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 f389b2d84dab2..0a399e0774d10 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;
   };