feat(hass): add big-slider-card lovelace module

This commit is contained in:
matt1432 2025-02-02 00:41:25 -05:00
parent a72f8bed75
commit b8cbc80447
3 changed files with 26 additions and 0 deletions
configurations/homie/modules/home-assistant
scopedPackages/lovelace-components
big-slider-card
default.nix

View file

@ -98,6 +98,7 @@ in {
inherit
(self.scopedPackages.${pkgs.system}.lovelace-components)
big-slider-card
custom-sidebar
material-rounded-theme
;
@ -106,6 +107,7 @@ in {
config.frontend = {
themes = "!include_dir_merge_named themes";
extra_module_url = map (p: "/local/nixos-lovelace-modules/${p}.js") [
"big-slider-card"
"card-mod"
"light-entity-card"
"custom-sidebar-yaml"

View file

@ -0,0 +1,23 @@
{
stdenv,
fetchurl,
...
}: let
pname = "big-slider-card";
version = "1.1.5";
in
stdenv.mkDerivation {
inherit pname version;
src = fetchurl {
url = "https://github.com/nicufarmache/lovelace-${pname}/releases/download/${version}/${pname}.js";
hash = "sha256-uNlgsiubLXG1VzhNCSeKo/5TmQF1fzFHjTYfutEXn1M=";
};
phases = ["installPhase"];
installPhase = ''
mkdir $out
cp $src $out/${pname}.js
'';
}

View file

@ -6,6 +6,7 @@
lib.makeScope pkgs.newScope (lovelace: let
callPackage = file: lovelace.callPackage file ({} // inputs);
in {
big-slider-card = callPackage ./big-slider-card;
custom-sidebar = callPackage ./custom-sidebar;
material-rounded-theme = callPackage ./material-rounded-theme;
})