mirror of
https://github.com/anotherhadi/nixy.git
synced 2026-10-05 11:18:24 +02:00
@@ -22,6 +22,7 @@
|
||||
../../server-modules/fail2ban.nix
|
||||
../../server-modules/default-creds.nix
|
||||
../../server-modules/gitea.nix
|
||||
../../server-modules/home-assistant.nix
|
||||
|
||||
# You should let those lines as is
|
||||
./hardware-configuration.nix
|
||||
|
||||
@@ -0,0 +1,27 @@
|
||||
{config, ...}: {
|
||||
services.home-assistant = {
|
||||
enable = true;
|
||||
openFirewall = true;
|
||||
extraComponents = [
|
||||
"default_config"
|
||||
"met"
|
||||
"esphome"
|
||||
"hue"
|
||||
"matter"
|
||||
"thread"
|
||||
];
|
||||
config = {
|
||||
default_config = {};
|
||||
http = {
|
||||
trusted_proxies = ["127.0.0.1" "::1"];
|
||||
use_x_forwarded_for = true;
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
services.matter-server.enable = true;
|
||||
|
||||
networking.firewall.allowedUDPPorts = [5353];
|
||||
|
||||
services.cloudflared.tunnels."${config.var.tunnelId}".ingress."hass.${config.var.domain}" = "http://localhost:${toString config.services.home-assistant.config.http.server_port}";
|
||||
}
|
||||
Reference in New Issue
Block a user