feat(hass): add big-slider-card lovelace module
All checks were successful
Discord / discord commits (push) Has been skipped
All checks were successful
Discord / discord commits (push) Has been skipped
This commit is contained in:
parent
a72f8bed75
commit
b8cbc80447
3 changed files with 26 additions and 0 deletions
|
@ -98,6 +98,7 @@ in {
|
||||||
|
|
||||||
inherit
|
inherit
|
||||||
(self.scopedPackages.${pkgs.system}.lovelace-components)
|
(self.scopedPackages.${pkgs.system}.lovelace-components)
|
||||||
|
big-slider-card
|
||||||
custom-sidebar
|
custom-sidebar
|
||||||
material-rounded-theme
|
material-rounded-theme
|
||||||
;
|
;
|
||||||
|
@ -106,6 +107,7 @@ in {
|
||||||
config.frontend = {
|
config.frontend = {
|
||||||
themes = "!include_dir_merge_named themes";
|
themes = "!include_dir_merge_named themes";
|
||||||
extra_module_url = map (p: "/local/nixos-lovelace-modules/${p}.js") [
|
extra_module_url = map (p: "/local/nixos-lovelace-modules/${p}.js") [
|
||||||
|
"big-slider-card"
|
||||||
"card-mod"
|
"card-mod"
|
||||||
"light-entity-card"
|
"light-entity-card"
|
||||||
"custom-sidebar-yaml"
|
"custom-sidebar-yaml"
|
||||||
|
|
|
@ -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
|
||||||
|
'';
|
||||||
|
}
|
|
@ -6,6 +6,7 @@
|
||||||
lib.makeScope pkgs.newScope (lovelace: let
|
lib.makeScope pkgs.newScope (lovelace: let
|
||||||
callPackage = file: lovelace.callPackage file ({} // inputs);
|
callPackage = file: lovelace.callPackage file ({} // inputs);
|
||||||
in {
|
in {
|
||||||
|
big-slider-card = callPackage ./big-slider-card;
|
||||||
custom-sidebar = callPackage ./custom-sidebar;
|
custom-sidebar = callPackage ./custom-sidebar;
|
||||||
material-rounded-theme = callPackage ./material-rounded-theme;
|
material-rounded-theme = callPackage ./material-rounded-theme;
|
||||||
})
|
})
|
||||||
|
|
Loading…
Add table
Reference in a new issue