From 159da44acf31b11a9eb5c125c2b7cd256aefaa21 Mon Sep 17 00:00:00 2001 From: Luke Granger-Brown Date: Sun, 14 Aug 2022 18:10:49 +0100 Subject: [PATCH] totoro: enable nodered --- ops/nixos/etheroute-lon01/default.nix | 4 ++++ ops/nixos/totoro/home-assistant.nix | 8 ++++++++ 2 files changed, 12 insertions(+) diff --git a/ops/nixos/etheroute-lon01/default.nix b/ops/nixos/etheroute-lon01/default.nix index e2f3681ecc..950cb9971b 100644 --- a/ops/nixos/etheroute-lon01/default.nix +++ b/ops/nixos/etheroute-lon01/default.nix @@ -367,6 +367,10 @@ in { timeout = "0"; }) (service "bvm-paperless.int.as205479.net:28981" "paperless.int.lukegb.com" {}) + (service "totoro.int.as205479.net:1880" "nodered.int.lukegb.com" { + allow_websockets = true; + timeout = "0"; + }) ]; }; }; diff --git a/ops/nixos/totoro/home-assistant.nix b/ops/nixos/totoro/home-assistant.nix index c742c08691..abccb64078 100644 --- a/ops/nixos/totoro/home-assistant.nix +++ b/ops/nixos/totoro/home-assistant.nix @@ -34,6 +34,8 @@ in { plex = {}; default_config = {}; + broadlink = {}; + homekit = {}; google_assistant = { project_id = "malden-homeassistant"; service_account = secrets.homeAssistant.googleServiceAccount; @@ -144,4 +146,10 @@ in { hostnames = [ "ha.lukegb.com" ]; nginxVirtualHosts = [ "ha.lukegb.com" ]; }; + + services.node-red = { + enable = true; + withNpmAndGcc = true; + port = 1880; + }; }