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"; + }; + }; + + }; +}