diff options
author | Martin Weinelt <hexa@darmstadt.ccc.de> | 2023-12-06 04:29:27 +0100 |
---|---|---|
committer | Martin Weinelt <hexa@darmstadt.ccc.de> | 2023-12-10 14:39:51 +0100 |
commit | cf1bbf293814694ddc1f67e336c85d27ee84f2d7 (patch) | |
tree | ab137c3491dba1cf154e3bb52d9a540c8d9e27cc /nixos/modules | |
parent | 3f4881220643bd1ce7cfc9e8a1b18e0cca90be04 (diff) |
nixos/home-automation: fix lovelace card entrypoint
Only append the .js extension to the card pname, not to the specified entrypoint. (cherry picked from commit d809a6f9c30d6d7dd0a87025553c28067810edf0)
Diffstat (limited to 'nixos/modules')
-rw-r--r-- | nixos/modules/services/home-automation/home-assistant.nix | 2 |
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 54fd3e17292f6..66a3879327161 100644 --- a/nixos/modules/services/home-automation/home-assistant.nix +++ b/nixos/modules/services/home-automation/home-assistant.nix @@ -77,7 +77,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; }; |