Add home assistant config to bachtel
This commit is contained in:
parent
45da45023a
commit
ac73eb6ab4
1 changed files with 22 additions and 0 deletions
|
@ -16,6 +16,28 @@
|
||||||
# extraGroups = [ "wheel" ]; # Enable ‘sudo’ for the user.
|
# 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
|
# This value determines the NixOS release from which the default
|
||||||
# settings for stateful data, like fi:le locations and database versions
|
# settings for stateful data, like fi:le locations and database versions
|
||||||
# on your system were taken. It‘s perfectly fine and recommended to leave
|
# on your system were taken. It‘s perfectly fine and recommended to leave
|
||||||
|
|
Loading…
Add table
Reference in a new issue