stuff
This commit is contained in:
parent
11f90d871d
commit
02caf378fe
1 changed files with 8 additions and 8 deletions
|
|
@ -1,13 +1,5 @@
|
||||||
{ lib, config, ... }:
|
{ lib, config, ... }:
|
||||||
{
|
{
|
||||||
options.server.home-assistant.enable = lib.mkEnableOption "Enable home-assistant";
|
|
||||||
|
|
||||||
config = lib.mkIf config.server.home-assistant.enable {
|
|
||||||
networking.firewall.allowedTCPPorts = [
|
|
||||||
8123
|
|
||||||
5683
|
|
||||||
];
|
|
||||||
|
|
||||||
imports = [
|
imports = [
|
||||||
./zones.nix
|
./zones.nix
|
||||||
./mosquitto.nix
|
./mosquitto.nix
|
||||||
|
|
@ -16,6 +8,14 @@
|
||||||
./heating.nix
|
./heating.nix
|
||||||
];
|
];
|
||||||
|
|
||||||
|
options.server.home-assistant.enable = lib.mkEnableOption "Enable home-assistant";
|
||||||
|
|
||||||
|
config = lib.mkIf config.server.home-assistant.enable {
|
||||||
|
networking.firewall.allowedTCPPorts = [
|
||||||
|
8123
|
||||||
|
5683
|
||||||
|
];
|
||||||
|
|
||||||
services.home-assistant = {
|
services.home-assistant = {
|
||||||
enable = true;
|
enable = true;
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue