From 5feff842da8502d9325b728d2706832d4a93c466 Mon Sep 17 00:00:00 2001 From: Ingolf Wagner Date: Sat, 22 Jun 2024 22:11:22 +0200 Subject: [PATCH] make it available --- homes/palo/packages/development.nix | 3 ++- machines/orbi/service-surrealdb.nix | 15 ++++++++++++++- 2 files changed, 16 insertions(+), 2 deletions(-) diff --git a/homes/palo/packages/development.nix b/homes/palo/packages/development.nix index d46473a..4a2e7a0 100644 --- a/homes/palo/packages/development.nix +++ b/homes/palo/packages/development.nix @@ -64,7 +64,6 @@ with lib; zola mermaid-cli - marp-cli # markdown to presentation framework # terminal recorder @@ -73,6 +72,8 @@ with lib; asciinema-scenario termtosvg + #surrealist + surrealdb boxes diff --git a/machines/orbi/service-surrealdb.nix b/machines/orbi/service-surrealdb.nix index 756258a..c09bc45 100644 --- a/machines/orbi/service-surrealdb.nix +++ b/machines/orbi/service-surrealdb.nix @@ -1,6 +1,11 @@ -{ config, pkgs, lib, ... }: +{ config, pkgs, lib, clanCore, factsGenerator, ... }: +let + surrealdbPort = 8000; +in { + networking.firewall.interfaces.wg0.allowedTCPPorts = [ surrealdbPort ]; + containers.surrealdb = { privateNetwork = false; autoStart = true; @@ -15,6 +20,14 @@ services.surrealdb = { enable = true; host = "0.0.0.0"; + port = surrealdbPort; + extraFlags = [ + "--auth" + "--user" + "root" + "--pass" + "root" + ]; }; };