From ecef42208a1b978cbd19f3ae5daaebb2f6288f7f Mon Sep 17 00:00:00 2001 From: matt1432 Date: Sun, 6 Oct 2024 20:33:37 -0400 Subject: [PATCH] feat(hass): add material you theme --- .../homie/modules/home-assistant/frontend.nix | 22 ++++++++++++++++++ flake.lock | Bin 54079 -> 55143 bytes flake.nix | Bin 10770 -> 11058 bytes inputs.nix | 8 +++++++ 4 files changed, 30 insertions(+) diff --git a/devices/homie/modules/home-assistant/frontend.nix b/devices/homie/modules/home-assistant/frontend.nix index c518989c..de94ba25 100644 --- a/devices/homie/modules/home-assistant/frontend.nix +++ b/devices/homie/modules/home-assistant/frontend.nix @@ -1,6 +1,8 @@ { caule-themes-src, dracul-ha-src, + material-rounded-theme-src, + material-symbols-src, lib, pkgs, ... @@ -11,6 +13,7 @@ themes = [ "${caule-themes-src}/themes/caule-themes-pack-1.yaml" "${dracul-ha-src}/themes/dracul-ha.yaml" + "${material-rounded-theme-src}/themes/material_rounded.yaml" ]; in { systemd.services.home-assistant.preStart = let @@ -25,8 +28,27 @@ in { }); 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 = { themes = "!include_dir_merge_named themes"; + extra_module_url = ["/local/nixos-lovelace-modules/card-mod.js"]; }; lovelaceConfig = { diff --git a/flake.lock b/flake.lock index a05d6e34487faa5a0d6be0701a57d2fbd91b53c9..5531408a2c96fd6a6c0f0a9580cf9f9f5d89611b 100644 GIT binary patch delta 501 zcmdnLjQROG<_!%o{D~#0MVW~?x<&b=c`2zWlh1PnaGD#LnHd_I7??~>oFJ!_YT#1o z9%5GMoZ;zf?CqbN6H;2CpXwi(Zyw>DS7fH2Z*Jk|?G)kXQ#|>jn;5HKYEgORWJWDf zv0OB>bxSf*b5kb=CW@$L%2tZD|3_bbBZTll=bE?G&M9ZH8QuD9H=d;mE&QO=v!5hR9I0E zl;c?*VyGYDoMl;@67KJsnQj?w7-~_T>g#D*65uv@qmMXyQfg{)M!v!1z>T83aG!t- zpKRbRrk-q?nv`gmVwRL*Y>;A*l$dCeYHpsEm}p^QX=;#|W@rZVP-@h delta 12 TcmdlKHYsF-m&oQU(G#KoBgX{{ diff --git a/inputs.nix b/inputs.nix index 39882892..131f2d59 100644 --- a/inputs.nix +++ b/inputs.nix @@ -231,6 +231,14 @@ let owner = "ricardoquecria"; repo = "caule-themes-pack-1"; } + { + owner = "Nerwyn"; + repo = "material-rounded-theme"; + } + { + owner = "beecho01"; + repo = "material-symbols"; + } # Nvim plugins {