feat(hass): add material you theme
All checks were successful
Discord / discord commits (push) Has been skipped
All checks were successful
Discord / discord commits (push) Has been skipped
This commit is contained in:
parent
52d0196dc1
commit
ecef42208a
4 changed files with 30 additions and 0 deletions
|
@ -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 = {
|
||||
|
|
BIN
flake.lock
BIN
flake.lock
Binary file not shown.
BIN
flake.nix
BIN
flake.nix
Binary file not shown.
|
@ -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
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue