From 298c851efc6aff6cbd488394d642764c7ccb0d6b Mon Sep 17 00:00:00 2001 From: Nickiel12 Date: Sun, 18 Aug 2024 17:30:11 -0700 Subject: [PATCH] switched to home-assistant --- hosts/Alaska/default.nix | 2 +- hosts/Alaska/modules/domoticz.nix | 15 --------------- hosts/Alaska/modules/home-assistant.nix | 23 +++++++++++++++++++++++ 3 files changed, 24 insertions(+), 16 deletions(-) delete mode 100644 hosts/Alaska/modules/domoticz.nix create mode 100644 hosts/Alaska/modules/home-assistant.nix diff --git a/hosts/Alaska/default.nix b/hosts/Alaska/default.nix index 9cbf4bc..6856f88 100644 --- a/hosts/Alaska/default.nix +++ b/hosts/Alaska/default.nix @@ -9,10 +9,10 @@ ./configuration.nix ./hardware-configuration.nix ./modules/dnsmasq.nix - ./modules/domoticz.nix ./modules/firewall.nix ./modules/forgejo.nix ./modules/headscale.nix + ./modules/home-assistant.nix ./modules/msmtp.nix ./modules/mosquitto.nix ./modules/nginx.nix diff --git a/hosts/Alaska/modules/domoticz.nix b/hosts/Alaska/modules/domoticz.nix deleted file mode 100644 index 525b7d4..0000000 --- a/hosts/Alaska/modules/domoticz.nix +++ /dev/null @@ -1,15 +0,0 @@ -{ config, lib, pkgs, ... }: - -{ - services.domoticz = { - enable = true; - port = 8981; - bind = "0.0.0.0"; - }; - - networking.firewall = { - allowedTCPPorts = [8981]; - allowedUDPPorts = [8981]; - }; - -} diff --git a/hosts/Alaska/modules/home-assistant.nix b/hosts/Alaska/modules/home-assistant.nix new file mode 100644 index 0000000..9ecd187 --- /dev/null +++ b/hosts/Alaska/modules/home-assistant.nix @@ -0,0 +1,23 @@ +{ config, lib, pkgs, ... }: + +{ + services.home-assistant = { + enable = true; + openFirewall = true; + + # List extraComponents here to be installed. The names can be found here: + # https://github.com/NixOS/nixpkgs/blob/master/pkgs/servers/home-assistant/component-packages.nix + # Components listed here will be possible to add via the webUI if not + # automatically picked up. + extraComponents = [ + "tasmota" + ]; + + config = { + mqtt = { + broker = "0.0.0.0"; + }; + }; + + }; +}