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 76 additions and 0 deletions

View file

@ -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 = {

34
flake.lock generated
View file

@ -924,6 +924,38 @@
"type": "github"
}
},
"material-rounded-theme-src": {
"flake": false,
"locked": {
"lastModified": 1726611404,
"narHash": "sha256-Me0DyGT6yChIM3KOclTux/eOYo7XKnr6/o78NKBXNLs=",
"owner": "Nerwyn",
"repo": "material-rounded-theme",
"rev": "d78298f87e5a4362985203bb4e45868bf7efca68",
"type": "github"
},
"original": {
"owner": "Nerwyn",
"repo": "material-rounded-theme",
"type": "github"
}
},
"material-symbols-src": {
"flake": false,
"locked": {
"lastModified": 1715105278,
"narHash": "sha256-lH4aMzxbqxpRlIwT1/TCj9sdWOEig9W1U8weMI5tPF4=",
"owner": "beecho01",
"repo": "material-symbols",
"rev": "c5eba1d6bd30d0baa4e77faa84950af16520efbc",
"type": "github"
},
"original": {
"owner": "beecho01",
"repo": "material-symbols",
"type": "github"
}
},
"minix": {
"inputs": {
"curseforge-server-downloader-src": "curseforge-server-downloader-src",
@ -1589,6 +1621,8 @@
"khepri": "khepri",
"lib-aggregate": "lib-aggregate",
"libratbag-src": "libratbag-src",
"material-rounded-theme-src": "material-rounded-theme-src",
"material-symbols-src": "material-symbols-src",
"minix": "minix",
"modernx-src": "modernx-src",
"mpv-persist-properties-src": "mpv-persist-properties-src",

View file

@ -217,6 +217,18 @@
repo = "libratbag";
type = "github";
};
material-rounded-theme-src = {
flake = false;
owner = "Nerwyn";
repo = "material-rounded-theme";
type = "github";
};
material-symbols-src = {
flake = false;
owner = "beecho01";
repo = "material-symbols";
type = "github";
};
minix = {
inputs.nixpkgs.follows = "nixpkgs";
owner = "matt1432";

View file

@ -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
{