diff --git a/host/bachtel/default.nix b/host/bachtel/default.nix index 2368230..79a5996 100644 --- a/host/bachtel/default.nix +++ b/host/bachtel/default.nix @@ -16,6 +16,28 @@ # extraGroups = [ "wheel" ]; # Enable ‘sudo’ for the user. # }; + services.home-assistant = { + enable = true; + package = pkgs.home-assistant.override { + extraPackages = python3Packages: with python3Packages; [ psycopg2 ]; + extraComponents = [ "default_config" "esphome" "met" ]; + }; + openFirewall = true; + extraComponents = [ "xiaomi_miio" ]; + config = { + homeassistant = { + name = "Home"; + latitude = "!secret latitude"; + longitude = "!secret longitude"; + elevation = "!secret elevation"; + unit_system = "metric"; + time_zone = "UTC"; + }; + frontend = { themes = "!include_dir_merge_named themes"; }; + http = { }; + }; + }; + # This value determines the NixOS release from which the default # settings for stateful data, like fi:le locations and database versions # on your system were taken. It‘s perfectly fine and recommended to leave