Skip to content

Commit

Permalink
home-assistant
Browse files Browse the repository at this point in the history
  • Loading branch information
esselius committed Aug 17, 2024
1 parent a243ccf commit 7ccbd73
Showing 1 changed file with 29 additions and 0 deletions.
29 changes: 29 additions & 0 deletions nixos-modules/profiles/smarthome.nix
Original file line number Diff line number Diff line change
Expand Up @@ -97,5 +97,34 @@ in
pkg = (pkgs.callPackage ../../pkgs/passport-openidconnect { }).package;
in
"${pkg.outPath}/lib/node_modules";
};

services.nginx.virtualHosts."home-assistant.adama.lan" = {
forceSSL = true;
enableACME = true;
locations."/" = {
proxyWebsockets = true;
proxyPass = "http://127.0.0.1:8123";
};
};

services.home-assistant = {
enable = true;
package = pkgs-unstable.home-assistant;
extraComponents = [
"zha"
"google_translate"
"mqtt"
"cast"
"homekit"
];
config = {
default_config = {};
http = {
use_x_forwarded_for = true;
trusted_proxies = ["127.0.0.1"];
};
};
};
};
}

0 comments on commit 7ccbd73

Please sign in to comment.