stuff
This commit is contained in:
parent
1ac7e0c6e1
commit
6200ef7e76
5 changed files with 115 additions and 123 deletions
|
|
@ -1,5 +1,6 @@
|
|||
{ ... }:
|
||||
{ lib, config, ... }:
|
||||
{
|
||||
config = lib.mkIf config.server.home-assistant.enable {
|
||||
services.home-assistant.config = {
|
||||
"automation" = [
|
||||
{
|
||||
|
|
@ -27,4 +28,5 @@
|
|||
}
|
||||
];
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,4 +1,6 @@
|
|||
{...}: {
|
||||
{ lib, config, ... }:
|
||||
{
|
||||
config = lib.mkIf config.server.home-assistant.enable {
|
||||
services.home-assistant.config.automation = [
|
||||
{
|
||||
description = "Pause Heating when Window opens";
|
||||
|
|
@ -13,4 +15,5 @@
|
|||
};
|
||||
}
|
||||
];
|
||||
};
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,4 +1,6 @@
|
|||
{...}: {
|
||||
{ lib, config, ... }:
|
||||
{
|
||||
config = lib.mkIf config.server.home-assistant.enable {
|
||||
services.home-assistant.config.automation = [
|
||||
{
|
||||
alias = "Wake Up Light";
|
||||
|
|
@ -52,4 +54,5 @@
|
|||
mode = "single";
|
||||
}
|
||||
];
|
||||
};
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,4 +1,6 @@
|
|||
{ sops, config, ...}: {
|
||||
{ lib, config, ... }:
|
||||
{
|
||||
config = lib.mkIf config.server.home-assistant.enable {
|
||||
|
||||
sops.secrets."home-assistant/mosquitto/hass" = { };
|
||||
|
||||
|
|
@ -17,4 +19,5 @@
|
|||
};
|
||||
|
||||
networking.firewall.allowedTCPPorts = [ 1883 ];
|
||||
};
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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";
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue