Compare commits
4 Commits
642ecd8f26
...
6833abaff1
Author | SHA1 | Date | |
---|---|---|---|
6833abaff1 | |||
c30cd87825 | |||
1605ba5de8 | |||
4abfcbc852 |
@ -272,18 +272,27 @@ in
|
|||||||
];
|
];
|
||||||
|
|
||||||
customComponents = with pkgs; [
|
customComponents = with pkgs; [
|
||||||
hass-browser-mod
|
home-assistant-browser-mod
|
||||||
ui-lovelace-minimalist
|
home-assistant-minimalist
|
||||||
];
|
];
|
||||||
|
|
||||||
customLovelaceModules = with pkgs.home-assistant-custom-lovelace-modules; [
|
customLovelaceModules =
|
||||||
bubble-card
|
(with pkgs.home-assistant-custom-lovelace-modules; [
|
||||||
button-card
|
bubble-card
|
||||||
mushroom
|
button-card
|
||||||
sankey-chart
|
card-mod
|
||||||
universal-remote-card
|
light-entity-card
|
||||||
# zigbee2mqtt-networkmap
|
mini-graph-card
|
||||||
];
|
mini-media-player
|
||||||
|
sankey-chart
|
||||||
|
universal-remote-card
|
||||||
|
])
|
||||||
|
++ (with pkgs; [
|
||||||
|
lovelace-auto-entities
|
||||||
|
lovelace-layout-card
|
||||||
|
lovelace-my-cards
|
||||||
|
lovelace-state-switch
|
||||||
|
]);
|
||||||
};
|
};
|
||||||
|
|
||||||
modules.services.borgmatic.directories = [
|
modules.services.borgmatic.directories = [
|
||||||
|
43
pkgs/lovelace-auto-entities/package.nix
Normal file
43
pkgs/lovelace-auto-entities/package.nix
Normal file
@ -0,0 +1,43 @@
|
|||||||
|
{
|
||||||
|
lib,
|
||||||
|
buildNpmPackage,
|
||||||
|
fetchFromGitHub,
|
||||||
|
}:
|
||||||
|
|
||||||
|
buildNpmPackage rec {
|
||||||
|
pname = "lovelace-auto-entities";
|
||||||
|
version = "v1.13.0";
|
||||||
|
|
||||||
|
src = fetchFromGitHub {
|
||||||
|
owner = "thomasloven";
|
||||||
|
repo = "lovelace-auto-entities";
|
||||||
|
rev = version;
|
||||||
|
hash = "sha256-ls8Jqt5SdiY5ROhtaSS4ZvoY+nHv6UB1RYApOJzC1VQ=";
|
||||||
|
};
|
||||||
|
|
||||||
|
npmDepsHash = "sha256-9z4YzLNxNh7I4yFxuPT3/erZO4itAiqyxL1a0pUTFRs=";
|
||||||
|
|
||||||
|
installPhase = ''
|
||||||
|
runHook preInstall
|
||||||
|
|
||||||
|
mkdir $out
|
||||||
|
cp ./auto-entities.js $out/
|
||||||
|
|
||||||
|
runHook postInstall
|
||||||
|
'';
|
||||||
|
|
||||||
|
passthru = {
|
||||||
|
entrypoint = "auto-entities.js";
|
||||||
|
};
|
||||||
|
|
||||||
|
makeCacheWritable = true;
|
||||||
|
|
||||||
|
meta = with lib; {
|
||||||
|
description = "Automatically populate the entities-list of lovelace cards";
|
||||||
|
homepage = "https://github.com/thomasloven/lovelace-auto-entities";
|
||||||
|
license = licenses.mit;
|
||||||
|
maintainers = [ ];
|
||||||
|
mainProgram = "lovelace-auto-entities";
|
||||||
|
platforms = platforms.linux;
|
||||||
|
};
|
||||||
|
}
|
37
pkgs/lovelace-layout-card/package.nix
Normal file
37
pkgs/lovelace-layout-card/package.nix
Normal file
@ -0,0 +1,37 @@
|
|||||||
|
{
|
||||||
|
lib,
|
||||||
|
buildNpmPackage,
|
||||||
|
fetchFromGitHub,
|
||||||
|
}:
|
||||||
|
|
||||||
|
buildNpmPackage rec {
|
||||||
|
pname = "lovelace-layout-card";
|
||||||
|
version = "v2.4.5";
|
||||||
|
|
||||||
|
src = fetchFromGitHub {
|
||||||
|
owner = "thomasloven";
|
||||||
|
repo = "lovelace-layout-card";
|
||||||
|
rev = version;
|
||||||
|
hash = "sha256-JqHpd3u3HT9JuAfCQW0Bg/UIQ/pzurQBp9/PFa+0/u0=";
|
||||||
|
};
|
||||||
|
|
||||||
|
npmDepsHash = "sha256-1Crvtux1IbdtZ5dMxhYcrCw/6IxLpNwNwUMEJpWm4HM=";
|
||||||
|
|
||||||
|
installPhase = ''
|
||||||
|
runHook preInstall
|
||||||
|
|
||||||
|
mkdir $out
|
||||||
|
install -m0644 layout-card.js $out
|
||||||
|
|
||||||
|
runHook postInstall
|
||||||
|
'';
|
||||||
|
|
||||||
|
makeCacheWritable = true;
|
||||||
|
|
||||||
|
meta = with lib; {
|
||||||
|
description = "Get more control over the placement of lovelace cards.";
|
||||||
|
homepage = "https://github.com/thomasloven/lovelace-layout-card";
|
||||||
|
license = licenses.mit;
|
||||||
|
maintainers = [ ];
|
||||||
|
};
|
||||||
|
}
|
37
pkgs/lovelace-my-cards/package.nix
Normal file
37
pkgs/lovelace-my-cards/package.nix
Normal file
@ -0,0 +1,37 @@
|
|||||||
|
{
|
||||||
|
lib,
|
||||||
|
buildNpmPackage,
|
||||||
|
fetchFromGitHub,
|
||||||
|
}:
|
||||||
|
|
||||||
|
buildNpmPackage rec {
|
||||||
|
pname = "my-cards";
|
||||||
|
version = "v1.0.6";
|
||||||
|
|
||||||
|
src = fetchFromGitHub {
|
||||||
|
owner = "AnthonMS";
|
||||||
|
repo = "my-cards";
|
||||||
|
rev = version;
|
||||||
|
hash = "sha256-x0vOq87P1uOq5ILB4CSAowaAtUo4Nu9m6DFRiqa/Sw4=";
|
||||||
|
};
|
||||||
|
|
||||||
|
npmDepsHash = "sha256-QohapCm6ABarHYwLlAhubvlrU5Z626vNAX1OB8b9A6g=";
|
||||||
|
|
||||||
|
installPhase = ''
|
||||||
|
runHook preInstall
|
||||||
|
|
||||||
|
mkdir $out
|
||||||
|
install -m0644 dist/my-cards.js $out
|
||||||
|
|
||||||
|
runHook postInstall
|
||||||
|
'';
|
||||||
|
|
||||||
|
makeCacheWritable = true;
|
||||||
|
|
||||||
|
meta = with lib; {
|
||||||
|
description = "Bundle of my custom Lovelace cards for Home Assistant. Includes: my-slider, my-slider-v2, my-button";
|
||||||
|
homepage = "https://github.com/AnthonMS/my-cards";
|
||||||
|
license = licenses.mit;
|
||||||
|
maintainers = [ ];
|
||||||
|
};
|
||||||
|
}
|
37
pkgs/lovelace-state-switch/package.nix
Normal file
37
pkgs/lovelace-state-switch/package.nix
Normal file
@ -0,0 +1,37 @@
|
|||||||
|
{
|
||||||
|
lib,
|
||||||
|
buildNpmPackage,
|
||||||
|
fetchFromGitHub,
|
||||||
|
}:
|
||||||
|
|
||||||
|
buildNpmPackage rec {
|
||||||
|
pname = "lovelace-state-switch";
|
||||||
|
version = "1.9.5";
|
||||||
|
|
||||||
|
src = fetchFromGitHub {
|
||||||
|
owner = "thomasloven";
|
||||||
|
repo = "lovelace-state-switch";
|
||||||
|
rev = version;
|
||||||
|
hash = "sha256-jrybRchpZWmqauKKv4i4ht/CAdMNykOuPjlDnZh4KPw=";
|
||||||
|
};
|
||||||
|
|
||||||
|
npmDepsHash = "sha256-p+XPG6nB9wDmaWrmSc0dmJdKBdIivbM337Gf4j6xqBg=";
|
||||||
|
|
||||||
|
installPhase = ''
|
||||||
|
runHook preInstall
|
||||||
|
|
||||||
|
mkdir $out
|
||||||
|
install -m0644 state-switch.js $out
|
||||||
|
|
||||||
|
runHook postInstall
|
||||||
|
'';
|
||||||
|
|
||||||
|
makeCacheWritable = true;
|
||||||
|
|
||||||
|
meta = with lib; {
|
||||||
|
description = "Dynamically replace lovelace cards depending on occasion";
|
||||||
|
homepage = "https://github.com/thomasloven/lovelace-state-switch";
|
||||||
|
license = licenses.mit;
|
||||||
|
maintainers = [ ];
|
||||||
|
};
|
||||||
|
}
|
Loading…
x
Reference in New Issue
Block a user