make it available

This commit is contained in:
Ingolf Wagner 2024-06-22 22:11:22 +02:00
parent 26267569eb
commit 5feff842da
Signed by: palo
GPG key ID: 76BF5F1928B9618B
2 changed files with 16 additions and 2 deletions

View file

@ -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

View file

@ -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"
];
};
};