This commit is contained in:
Lilith 2026-01-14 01:41:00 +01:00
parent 1ac7e0c6e1
commit 6200ef7e76
No known key found for this signature in database
GPG key ID: 272C807BD91F8446
5 changed files with 115 additions and 123 deletions

View file

@ -1,5 +1,6 @@
{ ... }: { lib, config, ... }:
{ {
config = lib.mkIf config.server.home-assistant.enable {
services.home-assistant.config = { services.home-assistant.config = {
"automation" = [ "automation" = [
{ {
@ -27,4 +28,5 @@
} }
]; ];
}; };
};
} }

View file

@ -1,4 +1,6 @@
{...}: { { lib, config, ... }:
{
config = lib.mkIf config.server.home-assistant.enable {
services.home-assistant.config.automation = [ services.home-assistant.config.automation = [
{ {
description = "Pause Heating when Window opens"; description = "Pause Heating when Window opens";
@ -13,4 +15,5 @@
}; };
} }
]; ];
};
} }

View file

@ -1,4 +1,6 @@
{...}: { { lib, config, ... }:
{
config = lib.mkIf config.server.home-assistant.enable {
services.home-assistant.config.automation = [ services.home-assistant.config.automation = [
{ {
alias = "Wake Up Light"; alias = "Wake Up Light";
@ -52,4 +54,5 @@
mode = "single"; mode = "single";
} }
]; ];
};
} }

View file

@ -1,4 +1,6 @@
{ sops, config, ...}: { { lib, config, ... }:
{
config = lib.mkIf config.server.home-assistant.enable {
sops.secrets."home-assistant/mosquitto/hass" = { }; sops.secrets."home-assistant/mosquitto/hass" = { };
@ -17,4 +19,5 @@
}; };
networking.firewall.allowedTCPPorts = [ 1883 ]; networking.firewall.allowedTCPPorts = [ 1883 ];
};
} }

View file

@ -1,19 +0,0 @@
{...}: {
services.wyoming = {
piper.servers = {
alba = {
enable=true;
uri="tcp://localhost:12001";
voice="en_GB-alba-medium";
};
};
faster-whisper.servers = {
tiny = {
enable=true;
uri="tcp://localhost:12002";
model="tiny-int8";
language="en";
};
};
};
}