feat(hass): add material you theme
All checks were successful
Discord / discord commits (push) Has been skipped

This commit is contained in:
matt1432 2024-10-06 20:33:37 -04:00
parent 52d0196dc1
commit ecef42208a
4 changed files with 30 additions and 0 deletions

View file

@ -1,6 +1,8 @@
{ {
caule-themes-src, caule-themes-src,
dracul-ha-src, dracul-ha-src,
material-rounded-theme-src,
material-symbols-src,
lib, lib,
pkgs, pkgs,
... ...
@ -11,6 +13,7 @@
themes = [ themes = [
"${caule-themes-src}/themes/caule-themes-pack-1.yaml" "${caule-themes-src}/themes/caule-themes-pack-1.yaml"
"${dracul-ha-src}/themes/dracul-ha.yaml" "${dracul-ha-src}/themes/dracul-ha.yaml"
"${material-rounded-theme-src}/themes/material_rounded.yaml"
]; ];
in { in {
systemd.services.home-assistant.preStart = let systemd.services.home-assistant.preStart = let
@ -25,8 +28,27 @@ in {
}); });
services.home-assistant = { services.home-assistant = {
customLovelaceModules = builtins.attrValues {
inherit
(pkgs.home-assistant-custom-lovelace-modules)
card-mod
;
material-symbols = pkgs.stdenv.mkDerivation {
pname = "material-symbols";
version = "0.0.0";
src = material-symbols-src;
phases = ["installPhase"];
installPhase = ''
mkdir $out
cp $src/dist/material-symbols.js $out
'';
};
};
config.frontend = { config.frontend = {
themes = "!include_dir_merge_named themes"; themes = "!include_dir_merge_named themes";
extra_module_url = ["/local/nixos-lovelace-modules/card-mod.js"];
}; };
lovelaceConfig = { lovelaceConfig = {

Binary file not shown.

BIN
flake.nix

Binary file not shown.

View file

@ -231,6 +231,14 @@ let
owner = "ricardoquecria"; owner = "ricardoquecria";
repo = "caule-themes-pack-1"; repo = "caule-themes-pack-1";
} }
{
owner = "Nerwyn";
repo = "material-rounded-theme";
}
{
owner = "beecho01";
repo = "material-symbols";
}
# Nvim plugins # Nvim plugins
{ {