forked from mirrors_public/oddlama_nix-config
feat: more cardssss
This commit is contained in:
parent
e3cfd89178
commit
9e58fcd325
6 changed files with 122 additions and 20 deletions
|
@ -84,6 +84,10 @@ in
|
|||
cidrv6 = "fd30::/64";
|
||||
hosts.ward.id = 1;
|
||||
hosts.sausebiene.id = 5;
|
||||
hosts.philips-ac2889 = {
|
||||
id = 21;
|
||||
mac = globals.macs.scanner-ads-4300n;
|
||||
};
|
||||
hosts.bambulab-p1s = {
|
||||
id = 22;
|
||||
mac = globals.macs.bambulab-p1s;
|
||||
|
|
|
@ -0,0 +1,48 @@
|
|||
{
|
||||
lib,
|
||||
stdenvNoCC,
|
||||
fetchFromGitHub,
|
||||
fetchYarnDeps,
|
||||
yarnConfigHook,
|
||||
yarnBuildHook,
|
||||
nodejs,
|
||||
}:
|
||||
stdenvNoCC.mkDerivation rec {
|
||||
pname = "config-template-card";
|
||||
version = "1.3.6-unstable";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "oddlama";
|
||||
repo = "config-template-card";
|
||||
rev = "517159d1d0aed3d9b7664e832d20a184c52e6e2f";
|
||||
hash = "sha256-U+yHjhrFw+6DtADIy7kkAGu3hXdxbgH0kG8Ay6cCAWI=";
|
||||
};
|
||||
|
||||
offlineCache = fetchYarnDeps {
|
||||
inherit src;
|
||||
hash = "sha256-H5vADyspiGSWxBISXWiXvehqFItYDI0PEou42LdqEJU=";
|
||||
};
|
||||
|
||||
nativeBuildInputs = [
|
||||
yarnConfigHook
|
||||
yarnBuildHook
|
||||
nodejs
|
||||
];
|
||||
|
||||
installPhase = ''
|
||||
runHook preInstall
|
||||
|
||||
mkdir -p $out
|
||||
cp dist/* $out
|
||||
|
||||
runHook postInstall
|
||||
'';
|
||||
|
||||
meta = {
|
||||
description = "Templatable Lovelace Configurations";
|
||||
homepage = "https://github.com/oddlama/config-template-card";
|
||||
license = lib.licenses.mit;
|
||||
platforms = lib.platforms.all;
|
||||
maintainers = with lib.maintainers; [ oddlama ];
|
||||
};
|
||||
}
|
55
hosts/sausebiene/hass-lovelace/hui-element/package.nix
Normal file
55
hosts/sausebiene/hass-lovelace/hui-element/package.nix
Normal file
|
@ -0,0 +1,55 @@
|
|||
{
|
||||
lib,
|
||||
stdenvNoCC,
|
||||
fetchFromGitHub,
|
||||
fetchNpmDeps,
|
||||
npmHooks,
|
||||
nodejs,
|
||||
}:
|
||||
stdenvNoCC.mkDerivation rec {
|
||||
pname = "hui-element";
|
||||
version = "unstable-2025-01-28";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "oddlama";
|
||||
repo = "lovelace-hui-element";
|
||||
rev = "4569a5bf0069de0467c1bf73f0d5cfcff039bc26";
|
||||
hash = "sha256-qTGbisJ+AHamzMyn38w8URbO/mQM0cOP4Vwss770/eE=";
|
||||
};
|
||||
|
||||
npmDeps = fetchNpmDeps {
|
||||
inherit src;
|
||||
hash = "sha256-TiLDwE6JtY+EYe/CjYTo0ZjBtpif19CNggcLpqbkVMo=";
|
||||
};
|
||||
|
||||
nativeBuildInputs = [
|
||||
npmHooks.npmConfigHook
|
||||
nodejs
|
||||
];
|
||||
|
||||
buildPhase = ''
|
||||
runHook preBuild
|
||||
|
||||
rm hui-element.js
|
||||
npm run build
|
||||
|
||||
runHook postBuild
|
||||
'';
|
||||
|
||||
installPhase = ''
|
||||
runHook preInstall
|
||||
|
||||
mkdir -p $out
|
||||
cp hui-element.js $out/
|
||||
|
||||
runHook postInstall
|
||||
'';
|
||||
|
||||
meta = {
|
||||
description = "Use built-in elements in the wrong place";
|
||||
homepage = "https://github.com/thomasloven/lovelace-hui-element";
|
||||
license = lib.licenses.mit;
|
||||
platforms = lib.platforms.all;
|
||||
maintainers = with lib.maintainers; [ oddlama ];
|
||||
};
|
||||
}
|
|
@ -61,10 +61,17 @@ in
|
|||
hash = "sha256-jQXQdcgW8IDmjaHjmeyXHcNTXYmknNDw7Flegy6wj2A=";
|
||||
};
|
||||
}))
|
||||
dwd
|
||||
waste_collection_schedule
|
||||
];
|
||||
|
||||
customLovelaceModules = with pkgs.home-assistant-custom-lovelace-modules; [
|
||||
(pkgs.callPackage ./hass-lovelace/clock-weather-card/package.nix { })
|
||||
(builtins.trace "soon upstreamed" (
|
||||
pkgs.callPackage ./hass-lovelace/clock-weather-card/package.nix { }
|
||||
))
|
||||
(pkgs.callPackage ./hass-lovelace/config-template-card/package.nix { })
|
||||
(pkgs.callPackage ./hass-lovelace/hui-element/package.nix { })
|
||||
apexcharts-card
|
||||
bubble-card
|
||||
button-card
|
||||
card-mod
|
||||
|
@ -121,14 +128,15 @@ in
|
|||
|
||||
extraPackages =
|
||||
python3Packages: with python3Packages; [
|
||||
psycopg2
|
||||
gtts
|
||||
fritzconnection
|
||||
adguardhome
|
||||
zlib-ng
|
||||
pymodbus
|
||||
pyipp
|
||||
dwdwfsapi
|
||||
fritzconnection
|
||||
gtts
|
||||
psycopg2
|
||||
pyatv
|
||||
pyipp
|
||||
pymodbus
|
||||
zlib-ng
|
||||
];
|
||||
};
|
||||
|
||||
|
|
|
@ -14,12 +14,6 @@ in
|
|||
group = "plausible";
|
||||
};
|
||||
|
||||
age.secrets.plausible-admin-pw = {
|
||||
generator.script = "alnum";
|
||||
mode = "440";
|
||||
group = "plausible";
|
||||
};
|
||||
|
||||
environment.persistence."/persist".directories = [
|
||||
{
|
||||
directory = "/var/lib/clickhouse";
|
||||
|
@ -52,13 +46,6 @@ in
|
|||
disableRegistration = true;
|
||||
secretKeybaseFile = config.age.secrets.plausible-secret.path;
|
||||
};
|
||||
|
||||
adminUser = {
|
||||
activate = true;
|
||||
name = "admin";
|
||||
email = "plausible@${globals.domains.me}";
|
||||
passwordFile = config.age.secrets.plausible-admin-pw.path;
|
||||
};
|
||||
};
|
||||
|
||||
services.nginx = {
|
||||
|
|
Binary file not shown.
Loading…
Add table
Add a link
Reference in a new issue