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 a05d6e34..5531408a 100644 Binary files a/flake.lock and b/flake.lock differ diff --git a/flake.nix b/flake.nix index d0aa3f79..74232a60 100644 Binary files a/flake.nix and b/flake.nix differ 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 {