mirror of
https://github.com/Nickiel12/nicks-nix-config.git
synced 2024-11-22 12:49:32 -08:00
switched to home-assistant
This commit is contained in:
parent
fbfd85d5ca
commit
298c851efc
3 changed files with 24 additions and 16 deletions
|
@ -9,10 +9,10 @@
|
||||||
./configuration.nix
|
./configuration.nix
|
||||||
./hardware-configuration.nix
|
./hardware-configuration.nix
|
||||||
./modules/dnsmasq.nix
|
./modules/dnsmasq.nix
|
||||||
./modules/domoticz.nix
|
|
||||||
./modules/firewall.nix
|
./modules/firewall.nix
|
||||||
./modules/forgejo.nix
|
./modules/forgejo.nix
|
||||||
./modules/headscale.nix
|
./modules/headscale.nix
|
||||||
|
./modules/home-assistant.nix
|
||||||
./modules/msmtp.nix
|
./modules/msmtp.nix
|
||||||
./modules/mosquitto.nix
|
./modules/mosquitto.nix
|
||||||
./modules/nginx.nix
|
./modules/nginx.nix
|
||||||
|
|
|
@ -1,15 +0,0 @@
|
||||||
{ config, lib, pkgs, ... }:
|
|
||||||
|
|
||||||
{
|
|
||||||
services.domoticz = {
|
|
||||||
enable = true;
|
|
||||||
port = 8981;
|
|
||||||
bind = "0.0.0.0";
|
|
||||||
};
|
|
||||||
|
|
||||||
networking.firewall = {
|
|
||||||
allowedTCPPorts = [8981];
|
|
||||||
allowedUDPPorts = [8981];
|
|
||||||
};
|
|
||||||
|
|
||||||
}
|
|
23
hosts/Alaska/modules/home-assistant.nix
Normal file
23
hosts/Alaska/modules/home-assistant.nix
Normal file
|
@ -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";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
};
|
||||||
|
}
|
Loading…
Reference in a new issue