From aef86f5b89d965cec368d292485c4e89c921602b Mon Sep 17 00:00:00 2001 From: Richie Cahill Date: Mon, 5 Aug 2024 20:45:07 -0400 Subject: [PATCH] testing home-assistant --- .vscode/settings.json | 1 + systems/jeeves-jr/configuration.nix | 1 + systems/jeeves-jr/home_assistant.nix | 16 ++++++++++++++++ 3 files changed, 18 insertions(+) create mode 100644 systems/jeeves-jr/home_assistant.nix diff --git a/.vscode/settings.json b/.vscode/settings.json index c7bc55b..8f66c9e 100644 --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -94,6 +94,7 @@ "hexeditor", "hicolor", "hkps", + "homeassistant", "HPKP", "HRDN", "htmlaboutaddons", diff --git a/systems/jeeves-jr/configuration.nix b/systems/jeeves-jr/configuration.nix index efa8bb8..68e1208 100644 --- a/systems/jeeves-jr/configuration.nix +++ b/systems/jeeves-jr/configuration.nix @@ -5,6 +5,7 @@ ../../users/richie/global/zerotier.nix ./arch_mirror.nix ./docker + ./home_assistant.nix ./services.nix ]; diff --git a/systems/jeeves-jr/home_assistant.nix b/systems/jeeves-jr/home_assistant.nix new file mode 100644 index 0000000..bc9e390 --- /dev/null +++ b/systems/jeeves-jr/home_assistant.nix @@ -0,0 +1,16 @@ +{ + services.home-assistant = { + enable = true; + openFirewall = true; + config = { + server_port = 8123; + homeassistant = { + time_zone = "America/New_York"; + unit_system = "imperial"; + temperature_unit = "F"; + longitude = 40.74; + latitude = 74.03; + }; + }; + }; +}