1
0
mirror of https://github.com/kmein/niveum synced 2026-03-23 05:11:08 +01:00

chore: move hass to configs

This commit is contained in:
2020-11-01 09:45:15 +01:00
parent 4a4d5a148d
commit d2939795ac
7 changed files with 1 additions and 1 deletions

37
configs/hass/frontend.nix Normal file
View File

@@ -0,0 +1,37 @@
let
inherit (import ./lib.nix) triggers;
in
{
services.home-assistant.config = {
frontend = {
themes = {
day_theme = import ./themes/clear.nix;
night_theme = import ./themes/clear-dark.nix;
};
};
automation = [
{
alias = "Night Theme";
hide_entity = true;
trigger = triggers.night;
action = [
{
service = "frontend.set_theme";
data.name = "night_theme";
}
];
}
{
alias = "Day Theme";
hide_entity = true;
trigger = triggers.day;
action = [
{
service = "frontend.set_theme";
data.name = "day_theme";
}
];
}
];
};
}